My webpage has a carousel with pictures, but on smaller devices, they do not appear properly. I am now trying to figure out how to hide the div if the width is less than 1015px. Here is the code for my div:
<html>
<body>
<div id="myCarousel" class="carousel slide" data-ride="carousel">
</body>
</html>
I understand that I may need to use JavaScript or CSS to achieve this, but so far I have been unsuccessful. Can someone provide guidance on which specific JavaScript code I should use for this purpose?