<nav class="navbar navbar-expand-md navbar-light bg-primary">
<a class="navbar-brand" href="#">Brand</a>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbarSupportedContent">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">Home</li>
</ul>
</div>
</nav>
When viewing the page on desktop, the toggle button is still visible with the code above. https://i.sstatic.net/sJv9H.jpg