Utilizing the Bootstrap 4.1 card component, I showcase categories within the right sidebar - check out a sample image of the card here: Card example image;
When viewing on smaller screens, it's preferable to collapse this large card as shown in this mobile example: mobile example.
How can I achieve this collapsing effect on `sm` and `md` screens while keeping the card intact on `lg` screens? Or should I opt for an alternative approach?
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<div class="container">
<div class="card mb-3">
<h5 class="card-header">Categories</h5>
<div class="card-body">
<h5><a href="http://rtss2.loc/info">All</a></h5>
Categories here
</div>
</div>
</div>