There's a newish CSS feature to fix just this: scrollbar-gutter (
https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-g...). Unfortunately, Safari doesn't support it.
Can also lead to an ugly gap in your navbar depending on which container you're making scroll.