sm display none code example
Example 1: bootstrap display inline block
<div class="d-inline-block"></div>
Example 2: show image only on md screen
<div class="d-none d-md-block d-lg-none">
<img src="" alt="alternate text" />
</div>
<div class="d-inline-block"></div>
<div class="d-none d-md-block d-lg-none">
<img src="" alt="alternate text" />
</div>