A user encountered white space appearing on the right side of product pages in mobile view on their Dawn 15.4 theme store. Their initial fix using overflow-x: hidden on html and body elements removed the white space but broke the sticky header functionality.
Root Cause:
A video element (.video-custom video) was extending beyond the viewport width, causing horizontal overflow.
Solutions Provided:
Use overflow: clip instead of overflow: hidden (doesn’t break position: sticky)
Apply overflow rules to child elements like main rather than html/body
Target the specific problematic element with max-width: 100%
Resolution:
The issue was resolved by applying .video-custom video { max-width: 100%; } which prevented the video from exceeding viewport width. The user confirmed this CSS fix worked successfully while maintaining sticky header functionality.
Summarized with AI on October 23.
AI used: claude-sonnet-4-5-20250929.
Hey! That usually happens when an element on the product page (like an image container or a section) has a fixed width larger than the viewport — causing horizontal scrolling.
Instead of hiding the overflow (which breaks sticky headers), you can try this approach:
body {
overflow-x: clip;
}
Or, even better, use the Chrome inspector on mobile view to find which element is causing the overflow — it’s often something like .product-media or .slideshow__slide.