I am currently working on optimizing the mobile version of my website using Bootstrap. There is a div element that is taking up too much space on the page, and I would like to hide it on page load for screen widths of 991px or less. I want users to have the option to show this div by clicking on a button. For screen widths greater than 992px, I want the div to be visible upon page load.
My question is if Bootstrap provides a way to achieve this without relying on additional JavaScript. If so, I would like to know how to implement it. Otherwise, what would be the best approach to accomplish my goal?
<div class="mydiv">
This content should be hidden on page load for screen widths of 991px or less.
</div>
<a class="btn" data-toggle="collapse" data-target=".mydiv">Show Div »</a>