I have been attempting to hide a card on mobile devices using the class "d-none d-sm-block". However, while this method works when I resize the page, it does not work on actual mobile devices or when using the toggle device toolbar in Chrome. Strangely, the class "d-none d-lg-block" works perfectly fine regardless of how I view it. Can anyone explain why the "d-sm-block" class is not working as expected? I have tested this on different browsers with the same result. Here is the code I am using:
<div class="card d-none d-sm-block">
<div class="card-body">
<h4 class="card-title" align="center">Example</h4>
</div>
</div>