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