It appears that you are interested in displaying a toggle button exclusively on mobile screens. To achieve this, you can implement the following code snippet:
Access JSFiddle Example
JS Code:
function bodyScrollStop() {
$('.header .navbar .navbar-toggler i').on('click', function (event) {
$('body').toggleClass("no-scroll");
});
}
bodyScrollStop();
CSS:
i {
background: green;
height: 44px;
width: 44px;
display: inline-block;
color: #fff;
}
.no-scroll {
overflow: hidden;
}
By clicking on the toggler, the body will receive a dynamic class that prevents scrolling.
Feel free to reach out if you require further assistance.