I have used the below approach to fix the issue in iOS safari browser.
CSS only fix for Chrome/Firefox
html, body {
overscroll-behavior-x: none;
}
JavaScript fix for Safari
if (window.safari) {
history.pushState(null, null, location.href);
window.onpopstate = function(event) {
history.go(1);
};
}