Webflow sync, pageviews & more.
NEW

How can I fix the issue with Webflow sites not displaying properly in Samsung Browser's dark mode?

TL;DR
  • Add <meta name="color-scheme" content="light only"> in the Before </body> tag section of Webflow's Custom Code.
  • Use custom CSS overrides to manually fix any remaining dark mode issues (e.g., background-color: #ffffff !important;).
  • Test the site in Samsung Internet Browser with dark mode enabled and use DevTools to inspect any persistent issues.

Webflow sites may not display correctly in Samsung Internet Browser's dark mode because the browser forcefully alters styles to create a dark theme. To fix this, you can prevent the browser from overriding your Webflow design.

1. Add CSS to Prevent Forced Dark Mode

  • Go to Webflow Designer and open Page Settings for the affected page.
  • Scroll to the Custom Code section and add the following inside the Before tag field:
    ```html\`\`\`
  • This tells the browser to retain your original light mode styles.

2. Use CSS to Control Elements Manually

  • If some elements still look incorrect, override unwanted dark mode styles by adding a custom CSS embed in your Webflow project:
    ```css
    html {
    background-color: #ffffff !important;
    color: #000000 !important;
    }
    ```
  • Adjust the colors based on your design requirements.

3. Test the Changes

  • Open your site in Samsung Internet Browser with dark mode enabled to confirm that the design remains intact.
  • If issues persist, inspect elements using DevTools on a Samsung device or Samsung Browser's developer mode.

Summary

To fix Webflow sites breaking in Samsung Browser's dark mode, add a meta tag to disable forced dark mode and apply custom CSS overrides if necessary. Then, test to ensure your design remains consistent.

Rate this answer

Other Webflow Questions