css stop scrollbar

CSS
/* Hide scrollbar for Chrome, Safari and Opera */
.example::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE and Edge */
.example {
  -ms-overflow-style: none;
}  /* Hide scrollbar for Chrome, Safari and Opera */

  .example::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar 
  for IE and Edge */
.example {
  -ms-overflow-style: none;
} function HideScrollbar() {
  var style = document.createElement("style");
  style.innerHTML = `body::-webkit-scrollbar {display: none;}`;
  document.head.appendChild(style);
}html {
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

html::-webkit-scrollbar {
    width: 0px; /* For Chrome, Safari, and Opera */
}
Source

Also in CSS: