What helped me, I worked
$("body *").each(function() { $(this).css('background-color', 'red'); });
on the console. This helped me identify elements that caused the width of the document to grow beyond the width of the window. In my case, we had elements moving from outside the document border (welcome websites). There was not a single element that would be wider than the width of the window. Where simply located beyond normal boundaries.
Since I already used <meta name="viewport" content="width=device-width, initial-scale=1.0"> , I added this CSS:
body { overflow-x: hidden; }
source share