I'm applying the following CSS to successfully disable side-scrolling when viewing a site via desktop:
html, body {
max-width: 100% !important;
overflow-x: hidden !important;
}
However, when viewing the site on a mobile browser, side scrolling is still possible.
To be clear, there is content that is overflowing the screen width. I'd like to keep it that way if possible, but make it so the user cannot scroll to see the overflowing content. As this is easy to do with the above code from a desktop browser, I suspect it must be possible on a mobile browser as well.