Right margin or padding on entire website

Topic summary

A user is experiencing unwanted right-side margin or padding across their entire Shopify store, particularly noticeable on mobile devices. They’re using the Impulse theme and have tried previously posted solutions without success.

Attempted Solutions:

  • Multiple community members suggested adding CSS code to the theme.liquid file:
    • body { overflow-x: hidden; }
    • Code should be placed in <style> tags before the </body> tag

Current Status:

  • The CSS fix partially worked—margin disappeared on desktop but persists on mobile
  • Store URL shared: www.bionicgym.com
  • Screenshots provided showing the issue on both desktop and mobile views

Discussion remains open as the mobile margin issue is unresolved despite implementing the recommended overflow-x CSS solution.

Summarized with AI on November 14. AI used: claude-sonnet-4-5-20250929.

Hi,

The website I am working on has a margin or padding on the right side of the entire site. Its not a huge issue on desktop but is particularly noticeable on mobile. I have followed various solutions that have been posted here in the past but not have worked my this particular theme. The theme being used is Impulse. Thanks!

Hi @WesQ , can you share your store url?

Hi @WesQ

This is Henry from PageFly - Landing Page Builder App

You can try this code by following these steps:

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.liquid

Step 3: paste bellow code in tag → save.

Body{ overflow-x: hidden; }

Hope that my solution works for you.

Best regards,

Henry | PageFly

Hello there send your store link let me go through it properly

I have followed these steps but it has not seemed to work though. Thank you for replying

the store link is www.bionicgym.com

Hi Abdosamer,

The store url is www.bionicgym.com

Please try again with this code:

body{ overflow-x: hidden; }

I have entered this before the tag but still not joy. The margin appears to be gone on desktop but is still appearing on mobile.