I'm attempting to remove the scrollbar from all elements in my Vue + Vite application. I do not want to disable scrolling, just hide the scrollbar itself. To achieve this, I have employed the following code snippet.
*::-webkit-scrollbar {
display: none !important;
}
While this solution effectively hides the scrollbar on desktop screens, it remains visible on mobile devices, including when utilizing Chrome devtools' mobile simulation feature. Below is the meta tag included in my project:
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
My Vue Vite application consists of default settings and features some vertically overflowing content.