My Code Works On My Desktop and on the Desktop Mobile Preview but not on the actual mobile

Topic summary

Issue: Custom CSS for two elements appeared correctly in desktop and desktop mobile preview but not on actual mobile devices.

  • Affected styles:
    • .vtl-pr-review-card__main-photo-holder — background-color set to #C9C69C.
    • .vt-accordion — bottom border set to 1px solid #222222.

Steps taken:

  • Helper requested the store link; the merchant provided it.
  • Diagnosis: CSS was correct but placed in a location that didn’t load on mobile.

Resolution:

  • Move the CSS into the theme’s main layout file (theme.liquid), inside the section so it loads globally across devices. A screenshot was provided to indicate where to paste it.
  • After updating placement, the styles applied on mobile and the merchant confirmed it works.

Outcome: Resolved. No further action items noted.

Notes: Multiple screenshots were referenced to compare desktop vs. mobile behavior and to show placement in theme.liquid.

Summarized with AI on January 2. AI used: gpt-5.

Hello so i have been doing some coding to upgrade the look of my website, while doing a reviews page I have wanted to make the separation line between the picture and the review to be the same as the background picture and I have thought I have done it as it changes on both the desktop view and the desktop mobile preview but not on the actual mobile. This is the code I used…

}

.vtl-pr-review-card__main-photo-holder {
background-color: #C9C69C !important;

}

My second issue is very small but very annoying it’s the same issue as the first problem it works with desktop but not with mobile. It’s regarding the lines underlining the shipping, description and our guarantee, this is the code I have used for that

}

.vt-accordion {
border-bottom: 1px solid #222222 !important

}

All the help will be appreciated

Hey @Pipsandoats ,

Can you share the link to your store and password (if any) or disable the password temporarily

Hello this is the link https://pipsandoats.com/ !

The code is ok, you just have to add it to a different place.

Go to your theme’s “Edit Code” Option, then in the search bar type “theme.liquid”
Below the tag “” tag paste the following. Screenshot attached for reference.


Screenshot is for reference only, the correct code to paste is the one shown above.

1 Like

Thank You so much for such a quick reply and for figuring it out works perfectly now!