On this page
What this issue is
Chrome on Android has an option called Auto Dark Mode for Web Contents (chrome://flags, and a setting for users who turn on dark theme). When it is on, Chrome rewrites the colours of pages that are light only. It darkens white backgrounds and lightens dark text. It also tries to decide which images to change.
Why it costs you leads or sales
Visitors judge trust in seconds. A missing or garish logo, a bright box on a dark page or a payment badge that cannot be read makes a site look unfinished or unsafe. The impact is usually small and limited to people on Android with dark theme, which is why this is rated low. But it sits on pages like checkout and lead forms, where trust matters most.
- Visitor on AndroidDark theme is on in Chrome
- Chrome auto darkens pagePage does not declare colour scheme
- Logo inverted or invisibleTransparent or dark logo clashes
- Trust dropsSite looks broken or unsafe
- Form or checkoutSome visitors leave
The page loads fine, but the trust signals are damaged before the visitor reaches the form.
How to check if your site has it
Turn on dark theme on an Android phone
In Android settings, enable Dark theme. In Chrome, open Settings > Theme and choose Dark.
Enable the Chrome flag if needed
Open chrome://flags, search for Auto Dark Mode for Web Contents and set it to Enabled. Relaunch Chrome. Availability of the flag varies by Chrome version.
Open your key pages
Check the home page, landing pages, the lead form and checkout. Look at the logo, payment badges, icons, banners and any images with text.
Compare with light mode
Note anything that is missing, tinted, boxed or unreadable.
Try desktop Chrome too
In DevTools open the Rendering panel and set Emulate CSS media feature prefers-color-scheme. For forced darkening, the same chrome://flags setting exists on desktop under Auto Dark Mode for Web Contents.
How to fix it
You have two honest options. Either tell the browser your page is light only, so it leaves it alone, or build a real dark style and test it. The first is fast. The second is better if many of your visitors use dark theme.
<meta name="color-scheme" content="only light">
<style>
:root { color-scheme: only light; }
</style>/* Declare support so Chrome does not guess */
:root { color-scheme: light dark; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
.logo-light { display: none; }
.logo-dark { display: block; }
}Add the meta tag
Use a child theme's header.php or a code snippet plugin to output the color-scheme meta tag in the head. Some themes also have a built-in dark mode toggle, so check theme settings first.
Fix the logo
In Appearance > Customize > Site Identity, upload a logo with a solid background or a version that works on both light and dark.
Edit theme.liquid
In Online Store > Themes > Edit code, open layout/theme.liquid and add the meta tag inside the head.
Replace the logo
Upload a logo that is readable on light and dark backgrounds in the theme customiser header settings.
Add to custom code
In Project Settings > Custom Code, paste the meta tag and style into the Head code box, then publish.
Add custom code
In Settings > Custom Code, add the meta tag to the Head of all pages. Wix may limit style control, so check the result on a phone.
Use code injection
Open Settings > Advanced > Code Injection and paste the meta tag into the Header box.
Add head tracking code
In the funnel or website settings, add the meta tag to the Head Tracking Code area for each funnel, then republish.
Edit your base template
Add the meta tag and the
color-schemerule to the shared layout so every page gets them.
Avoid logos that depend on transparency
Export the logo with a solid background, or add a light rounded badge behind it, so it reads on any page colour.
Provide a dark variant
Use a
pictureelement or the CSS swap above so dark theme gets a light logo.Check text inside images
Banners with baked-in text can lose contrast. Put important text in HTML instead.
<picture>
<source srcset="/logo-light-on-dark.svg" media="(prefers-color-scheme: dark)">
<img src="/logo.svg" alt="Your brand name" width="160" height="40">
</picture>Before
- No colour scheme declared
- Transparent dark logo disappears on dark background
- White badges show as bright boxes
After
- color-scheme declared
- Logo has a dark-theme variant or solid background
- Page looks the same intended design
How to confirm it's fixed
- Reload key pages on an Android phone with dark theme on
- Logo is visible and clean in both light and dark theme
- Payment badges and trust icons are readable
- Forms, buttons and error messages keep enough contrast
- Check the flag-enabled state and the flag-off state
- Test the checkout and thank-you page, not just the home page
How to prevent it happening again
- Keep the color-scheme meta tag in the shared template
- Export new logos and badges with a dark-safe version
- Add a dark-theme phone check to your release checklist
- Test new landing pages and funnel templates before launch
- Re-test after theme, builder or plugin updates
How FunnelGuard handles this
FunnelGuard does not check this yet. Spotting an inverted logo means judging how an image looks, and that is not part of the current checks. It is a possible future check.
What FunnelGuard does cover nearby: a robot visitor runs your real journeys (lead forms, checkouts, booking and chat buttons) on a schedule, checks each step and the tracking hits, and sends one alert with a screenshot if a step fails. That will tell you if a journey breaks, but not if a logo looks wrong in dark theme.
Questions people ask
Why does my logo look wrong in dark mode on Android?
Chrome on Android can apply Auto Dark Mode to pages that do not declare dark support. It changes page colours and can invert or tint images. Transparent or dark logos are most likely to disappear or show odd boxes.
How do I stop Chrome forcing dark mode on my website?
Add <meta name="color-scheme" content="only light"> in the head and :root { color-scheme: only light; } in your CSS. This tells Chrome your page is light only, so it should not darken it. Test on a phone afterwards.
Does the color-scheme meta tag fix inverted images?
It stops Chrome applying automatic darkening to a page that is declared light only. If you instead declare light dark, you are responsible for dark styling and logo variants. Either way, test the logo on a real device.
How do I test forced dark mode in Chrome?
On Android, turn on Dark theme in Chrome settings, or enable Auto Dark Mode for Web Contents at chrome://flags. On desktop, use the same flag or DevTools Rendering to emulate prefers-color-scheme. Flag names can change between Chrome versions.
How do I make a transparent PNG logo work in dark mode?
Give it a solid or light badge background, or supply a second light version and swap it with picture and prefers-color-scheme: dark. An SVG with colours that work on both backgrounds is another option.
Is forced dark mode the same as prefers-color-scheme dark?
No. prefers-color-scheme is a media query your own CSS uses to apply dark styles. Forced dark mode is the browser rewriting colours on a page that did not provide dark styles.
Does FunnelGuard detect logos inverted by dark mode?
No. FunnelGuard does not check this yet, and it is only a possible future check. It does run your real journeys and check tracking and lead delivery, so you still need a manual dark-theme test on a phone.
Related issues
- PRF-201Dark mode (prefers-color-scheme) makes text invisibleFix guide
- PRF-200Form autofill styles hide text in Chrome/SafariFix guide
- PRF-193Page broken in Samsung InternetFix guide
- PRF-205High-DPI/zoom 200% breaks layoutFix guide
- PRF-196CSS features unsupported (has(), container queries) break layoutFix guide
- PRF-191Page broken in Safari (iOS/macOS)Fix guide