Currently I am creating a bootstrap 4 based site and wanted to optimize this for mobile devices. How can I not display an element for certain screen sizes?
Normally I use ".hidden-sm-down" as documented here: https://v4-alpha.getbootstrap.com/layout/responsive-utilities/
I also tried alternatives like: .d-none .d-md-block .d-xl-none or hidden.
<div class="col-lg-4 order-lg-1 .d-none .d-sm-block">
<div class="card-profile-image">
<a href="#">
<img src="myimage.ong" alt="" class="rounded-circle">
</a>
</div>
</div>
Currently it is possible to hide the element with .d-none for all devices but I only want to hide it for xs and sm.
Hidden only on mobile
``` – Muhammad Shahzad Sep 18 '22 at 10:10