Bootstrap Menu bar shows up a toggle in Desktop Mode

If you want to hide elements based on breakpoints ( screen widths ) – you can use the display classes of BootStrap 4 – this might be different if you use an older version of BS.

https://getbootstrap.com/docs/4.0/utilities/display/

A simple example of a class name to hide an element on desktop would be:

<div class="d-sm-none">HIDDEN ON DESKTOP</div>

This is based on the rule:

.d-{breakpoint}-{value} for sm, md, lg, and xl.

Where value is one of:

  • none
  • inline
  • inline-block
  • block
  • table
  • table-cell
  • table-row
  • flex
  • inline-flex