Blog

Invisible cookie banner on Firefox or Brave: finding the culprit in four checks

An invisible cookie banner on Firefox or Brave is not always a website issue: it can be the browser, a JavaScript error, or a cached page. This article gives you four checks, in order, to find out which of these causes is the right one and fix it.

Invisible cookie banner on Firefox or Brave: finding the culprit in four checks

Key points

  • If the banner is missing in only one browser, test first without Brave's shields or Firefox's enhanced tracking protection.
  • If it is missing everywhere, open the console: a SyntaxError often comes from a JavaScript optimization plugin.
  • Clear all caches and test in private browsing before looking any further.
  • Nexya's Cookies module banner works behind a page cache, and third-party scripts remain blocked on the server side as long as there is no consent.
  • The appearance of the banner and service-by-service consent require nexya Pro; the rest is free.

On the WordPress.org forums, the same question comes up several times a week. The cookie banner is invisible on Firefox or Brave while displaying correctly in Chrome. Or the module is enabled, the settings are saved, and nothing appears in any browser.

These two situations do not have the same cause. If the banner is missing in only one browser, it is often the browser hiding it intentionally. If it is missing everywhere, the cause is on the site: a JavaScript error, a page served from a cache, or consent already recorded in your own browser.

Before changing anything, you therefore need to know which of these two cases you are in. The rest of the article follows this order.

Brave blocks many tracking elements by default, and its shields can also hide cookie consent notices. Firefox has enhanced tracking protection and, depending on the version and region, a feature that reduces cookie banners. Extensions like uBlock Origin do the same thing with dedicated filter lists.

In this case, the site is not broken. The banner code reaches the browser, which chooses not to display it. You can verify this by disabling Brave’s shields for your site, or Firefox’s enhanced protection, and then reloading the page.

If the banner reappears, you have nothing to fix on the WordPress side. This visitor chose a browser that refuses banners. What matters then is what third-party scripts are doing in the meantime. We will come back to this below.

A banner hidden by the browser is not a failure. The question becomes: do third-party scripts wait anyway?

The JavaScript error that stops everything

One of the topics mentioned on the forums talks about a SyntaxError in a variable declaration written directly into the page. This is a common case. When a syntax error occurs in a script, the browser abandons that script. If the banner depends on this code, it never displays.

The most frequent cause is optimization plugins that minify, bundle, or delay scripts. Minification that badly cuts a string of characters, bundling that changes the loading order, or deferring JavaScript until the first interaction are enough to break code that used to work.

To see this, open the browser console (F12 key, Console tab) and reload the page. A red line mentioning SyntaxError, or an undefined variable, tells you the file in question. Then disable the JavaScript optimization options one by one, starting with deferral and bundling, until the error disappears. Then exclude consent-related scripts from optimization, instead of leaving the option turned off for the entire site.

  • JavaScript deferral (“defer”, “delay JS”): the banner waits for an interaction that never comes.
  • Script bundling: an error in one file blocks all the others.
  • Minification of code written in the page: this is the usual source of SyntaxErrors.

Diagnosing a missing cookie banner in four checks

  1. 1

    Test in private browsing, in another browser

    Open the site in a private window without extensions, then in a second browser. If the banner appears, your choice was already saved or a blocker was hiding it.

  2. 2

    Disable Brave shields or Firefox protection

    Turn off Brave's shields or Firefox's enhanced protection for your site, then reload. If the banner comes back, the browser is hiding it, not the site.

  3. 3

    Read the console and turn off JavaScript optimization

    Press F12, go to the Console tab, and reload. If there is a SyntaxError, disable deferral, grouping, and minification options one by one, then exclude the consent scripts.

  4. 4

    Clear caches and restart cookie analysis

    Clear the WordPress, host, and CDN caches. Verify that the Cookies module is turned on in the hub, then restart the analysis to check the scripts the site loads.

    Clear caches and restart cookie analysis

Second cause on the site side: the page you see is not the current page. A page cache, whether from the host, a plugin, or a CDN, may serve a copy saved before the banner was enabled. Clear all caches, not just WordPress’, then reload.

Third cause, simpler: you have already responded to the banner. The browser keeps your choice, and the banner does not come back. This is normal behavior. A private browsing window, without extensions, shows you the site as a new visitor sees it.

These two checks take two minutes. They prevent you from searching for a failure that does not exist.

The Cookies module is turned on from the hub; when turned off, it records no hooks on the site.
The Cookies module is turned on from the hub; when turned off, it records no hooks on the site.

What the nexya Cookies module does

The nexya Cookies module displays a consent banner, holds back third-party scripts until the visitor agrees, and offers an analysis that detects these scripts on the site. It turns on from the hub, like the other modules. A turned-off module records nothing: none of its hooks run on the site.

Its banner also works behind a page cache. A cached site therefore does not need a special rule for the banner to appear to new visitors.

Scripts and iframes, such as embedded videos, are neutralized server-side as long as the visitor has not given their consent, category by category. Google Consent Mode v2 is supported. The analysis reads what the site loads and serves as the basis for the cookie policy.

All of this is free. nexya Pro adds banner appearance customization and service-by-service consent. The module does not protect you from optimization plugins that break the page’s JavaScript: if the console displays an error, the check described above remains necessary.

A video embedded before consent: the iframe remains neutralized until the visitor accepts.
A video embedded before consent: the iframe remains neutralized until the visitor accepts.

When the browser hides the banner, what remains blocked?

This is the real question to ask for Brave and Firefox. If the banner is hidden but measurement scripts still load, the site places trackers without consent. If the scripts wait, the visitor simply browses without them.

With the Cookies module, blocking is done on the server side before the page reaches the browser. As long as there is no consent, the relevant scripts and iframes remain neutralized, whether the banner is visible or not. A visitor whose browser hides the banner gives no consent, so nothing is loaded.

You can verify this with the Network tab of the developer tools: in a private window, without clicking on the banner, no requests should be sent to measurement or advertising services. Embedded videos must make way for a placeholder waiting for consent.

FAQ

Why does my cookie banner show in Chrome but not in Brave?

Brave blocks many tracking elements by default, and its shields may hide consent notices. Disable the shields for your site: if the banner comes back, the site is working and the browser is hiding it.

The console displays a SyntaxError, what should I do?

Disable JavaScript optimization options one by one (deferral, grouping, minification) until the error disappears, then exclude consent-related scripts from these options.

Does the Cookies module banner work with a page cache?

Yes. The Cookies module consent banner works even behind a page cache.

If the browser hides the banner, do third-party scripts load?

With the Cookies module, no. Scripts and iframes are neutralized on the server side until the visitor gives consent. Without a banner, there is no consent, so they remain blocked.

I no longer see the banner on my own site, is it an outage?

Often no: you have already answered, and your choice is saved. Open a private browsing window to view the site as a new visitor.

The modules in this post

nexya cookie nexya hub nexya cache

Try nexya Pro free for 7 days

Every module, forms, newsletters and the page cache, on your site. No commitment.

See the plans Or discover the free version