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