This snippet hides horizontal overflow on the page. It prevents unwanted side-scrolling when elements accidentally stick out past the viewport, keeping the layout clean and fixed to the screen width.
Add this code with a snippets plugin set to <head>, or use Page Custom CSS or Site Settings.
html, body {
overflow-x: hidden;
}
Some solutions only work on the live site. Always publish and test after each change, as results may not appear in the editor.