How to hide container on mobile for an email form

Topic summary

A user is designing a password page that displays correctly on desktop but encounters styling issues on mobile. Specifically, the email form lacks a visible container/box outline on mobile devices, showing only plain text instead of the bordered form box that appears on desktop.

Attempted Solutions:

  • Another user provided CSS code to be added to the theme.liquid file above the </body> tag
  • The first code snippet didn’t meet requirements (appeared to hide the form entirely)
  • A revised code snippet was provided to address the container visibility issue

Current Status:

  • The problem remains unresolved
  • The original poster confirmed the revised code still isn’t working and shared a screenshot of their code implementation
  • Awaiting further troubleshooting to achieve the desired mobile styling that matches the desktop version’s form container appearance
Summarized with AI on November 6. AI used: claude-sonnet-4-5-20250929.

Hi, I’m currently designing the password page for my website and it looks good on desktop however on mobile the email form has no box around it due to there not being an option to hide container for the mobile like there is on desktop.

the right is how it looks on desktop and how i want it to look however the left is what the mobile looks like.

the website is: pael.fyi

Hey @pael

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Hi, thanks for the reply. unfortunately this is not what i was looking for; i still want the email form to be there but it needs to look like the desktop version where there is an outline of the email form box as on the mobile version it just shows the text.

Hey @pael

Apologies for the confusion, remove the previous code and add this new code with the same steps mentioned above.


RESULT:

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Hi, still not working unfortunately, can you have a look if i’ve entered the code right?