How can I disable the cookie consent popup on my mobile website theme?

Topic summary

A user encountered a cookie consent popup appearing on their mobile website and wanted to remove it.

Initial Problem:

  • Cookie consent message (“this website uses cookies to ensure…”) displaying on mobile
  • Previous solutions attempted had not worked

Solution Provided:
Another user (KabirDev) suggested adding CSS code to hide the cookie consent popup by targeting the .js-cookie-policy class with display: none !important;

Outcome:

  • The CSS solution successfully resolved the issue
  • User confirmed it worked after implementation
Summarized with AI on November 13. AI used: claude-sonnet-4-5-20250929.

hi when im using my mobile to browse my website

its show up : this websites uses cookies to ensure …

how can i remove this ?

knowing that i try to solve the problem using other people solution but didn’t work for me

i try this too but i didn’t find Theme.css

also i try the below soloution and didnt work for me

Online Store ->Theme ->Edit code

Assets ->Theme.css

[aria-label="cookieconsent"] {
    display: none !important;
}

Copy

my wepsite is

mygentleflow.com

1 Like

Hi @mystore0 add the below code to your theme’s CSS file.

.js-cookie-policy {
    display: none !important;
}
1 Like

thanks its work!