desktop mobile show hide bootstrap 4 code example Example: bootstrap hide only on mobile <p class="d-none d-sm-block">Hidden only on mobile </p>