To achieve this, utilizing a jQuery plugin is the ideal approach.
For a highly customizable and adaptable option, consider using jScrollPane. This plugin supports both vertical and horizontal scrolling, enabling easy CSS styling through elements like handle, rail, and wrapper. Keep in mind that scrollbars typically require styling as they may appear unattractive by default.
If aesthetics are a priority, explore perfect-scrollbar, which emulates Mac OS X's sleek and minimalist scrollbar design—appearing only when necessary.
Another effective choice is jQuery-slimScroll, known for its lightweight nature, user-friendly interface, appealing appearance, and moderate customization options compared to other plugins.
While it is theoretically feasible to hide the scrollbar exclusively through CSS, this method is considered unreliable and detrimental to user experience. Opting for a jQuery plugin solution would be more advisable as it can seamlessly manage scrollbar functionality without requiring additional interventions.