The TermsFeed Privacy Consent cookie banner sits fixed at the bottom of the screen, above your page, until the visitor answers. It never pushes your content down, so anything else fixed to the bottom of the screen needs the same space. The consent banner leaves the page as soon as the visitor clicks I Agree, I Decline, or Close.

The fixes are CSS rules in your own stylesheet. Privacy Consent adds its stylesheet at the end of the <head> when it loads, after yours, so start every rule with the root ID #termsfeed_pc1_notice_banner. An ID outranks the class rules Privacy Consent uses in any order. The same rules work in "Custom CSS" on the Appearance page, which Privacy Consent adds after its own stylesheet.

The examples use max-width: 992px, a width where the consent banner stacks its text and buttons in some layouts. Change the value to the width where your own bottom bar appears. Check each selector with the DOM and CSS Selectors after a Privacy Consent update.

Cause 1: A navigation bar fixed to the bottom of the screen

A bottom navigation bar or a sticky add-to-cart bar sits in the same place as the consent banner. The consent banner uses z-index: 9999. A bar with a lower value disappears under the consent banner. A bar with a higher value hides the I Agree and I Decline buttons, which leaves the visitor unable to answer.

In the Elements tab of Chrome DevTools, select your bar, open the Computed pane, and read position, bottom, and z-index. A bar with fixed and bottom: 0px shares the space, while a bar fixed to the top of the screen stays clear of the consent banner.

Lift the consent banner above your bar with this rule, using the height of your bar in place of 64px.

@media (max-width: 992px) {
  #termsfeed_pc1_notice_banner .termsfeed-pc1-notice-banner-layout {
    bottom: 64px; /* the height of your bottom bar */
  }
}

A consent banner with long text grows as tall as a small screen, and the visitor then scrolls inside it to reach the last lines and buttons. Long translations and the vendor category switches add height. A "Card", "Bar", or "Panel" consent banner, whose root carries the class termsfeed-pc1-modern, limits itself on screens up to 640 pixels wide, so it rarely reaches this point. It stops at 85% of the viewport height, with its text at 36%. A Simple or Headline consent banner grows up to the full screen height and then scrolls inside itself.

"Headline" shows a header, a title, and a switch per vendor category, while "Simple" hides them and takes less height. The text is fixed per language in the TermsFeed app, and the consent banner type and your CSS set the rest. Aim for about a third of the screen height on the smallest phone your visitors use, so the page behind it stays readable. No setting enforces that figure, so check the height in each language your visitors see. A tall consent banner on a small screen is often the Largest Contentful Paint element, which you fix with LCP and Load Order.

In the Elements tab, select .termsfeed-pc1-notice-banner-layout inside #termsfeed_pc1_notice_banner and compare its height in the Computed pane with the screen height in the device toolbar.

Limit the text area to 40% of the screen height and let it scroll, which leaves the buttons outside the limit. Lower 40vh on a page that keeps a bottom bar from Cause 1, so the text, the buttons, and the bar fit together.

@media (max-width: 992px) {
  #termsfeed_pc1_notice_banner .termsfeed-pc1-notice-banner-content {
    max-height: 40vh;
    overflow-y: auto;
  }
}

A page whose viewport meta tag includes viewport-fit=cover extends under the home indicator on phones with no home button. Add padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); on .termsfeed-pc1-notice-banner-inner in the same rule on such a page, so the buttons stay above it.

Inherited styles stop at the consent banner, so clipped text comes from a rule of yours that matches its elements directly, or from a long word. Privacy Consent resets the root, which keeps out fonts, spacing, and text case your <body> passes down. A rule marked !important, or one that outranks the Privacy Consent rule, such as body.home a, still applies. The "Inherited" option under "Choose a font" lets your site font in on purpose, and a wide font makes the text longer.

Select the clipped text inside #termsfeed_pc1_notice_banner in the Elements tab, and in the Computed pane expand white-space, letter-spacing, text-transform, and font-size. A value that links to your own stylesheet points to the rule to change.

Remove !important from any generic rule of yours that reaches the consent banner, such as a rule on div or a. Then add this rule, which lets a long word or address wrap inside the screen.

#termsfeed_pc1_notice_banner .termsfeed-pc1-notice-banner-content {
  white-space: normal;
  overflow-wrap: anywhere;
}

Keep the floating button clear of chat widgets

The floating "Privacy Preferences" button sits in a bottom corner of the screen with z-index: 999, which is where most chat widgets place their launcher. With "Simple" and "Headline", it sits 12 pixels from the bottom and right edges. With "Card", "Bar", and "Panel", it sits 16 pixels from the bottom, on the side set by "Banner position". The button shows on every page for every visitor while "Use a sticky button to open the Privacy Preferences Center?" is on in the TermsFeed app.

A launcher with a higher z-index hides the button, and visitors then have no route back to the Privacy Preferences Center from it. On a phone, the 2 buttons overlap, and a visitor taps the wrong one. A launcher with a z-index above 9999 covers the consent banner too.

Set the chat launcher to the corner opposite the floating button in the settings of the chat widget. With "Simple" and "Headline", that is the bottom left corner. With "Card", "Bar", and "Panel", it is the bottom right corner when "Banner position" is "Bottom left", and the bottom left corner when it is "Bottom right". Otherwise, move the floating button up with this rule, using a value that clears the launcher. With "Simple" and "Headline", you can instead set right: auto and left: 12px to move it to the bottom left corner.

#termsfeed_pc1_sticky_element_placeholder {
  bottom: 88px;
}

The test takes 6 steps and about 15 minutes, from a location where the consent banner shows. Your CSS, browser zoom, and a landscape phone change the space I Agree and I Decline get, so the test covers each.

The Preview dialog on the Appearance page shows the "Mobile" device at 390 by 780, a quick first look before the test. The device toolbar in Chrome DevTools is the first check, and a real phone confirms it, because its browser toolbars change the visible area. Throttling in a desktop browser only imitates a slower device.

  1. Open your site in Chrome DevTools, click "Toggle device toolbar", and choose Responsive, and set the width to 320.
  2. Open the Network tab, type .css into the filter box, reload, and confirm that your stylesheet returns status 200.
  3. Select #termsfeed_pc1_notice_banner in the Elements tab and confirm that your rules appear in the Styles pane with no line through them.
  4. Open your site on a real phone in a new private window, so no stored answer hides the consent banner. Inspect it from your computer with chrome://inspect in Chrome for an Android phone connected by USB, or with the Develop menu of Safari on a Mac for a connected iPhone.
  5. Check, with the chat widget loaded, that your navigation bar, the text, and the I Agree and I Decline buttons are fully visible and tappable. I Decline stays as easy to reach as I Agree.
  6. Turn the phone to landscape, set text zoom to 200% in the browser settings, and check both buttons again. Then tap I Decline and confirm that the floating button sits clear of the chat launcher.

These rules change position and size only. Change colors, fonts, and spacing with Custom CSS.

Chrome DevTools gives you a repeatable throttled test of when the consent banner appears and how long vendor code runs on a slower phone. Save your changes in the TermsFeed app first, because a private window has no cached settings.

  1. Open your site in a private window, open Chrome DevTools, and turn on the device toolbar with Ctrl+Shift+M (Cmd+Shift+M on macOS). Choose a phone preset.
  2. Select the Performance tab, set CPU throttling to 4x slowdown and network throttling to Slow 4G, and click the reload button to record.
  3. Select the Network tab and filter for cdn.termsfeedtag.com. The consent banner appears after the second settings.json request finishes.
  4. Click I Agree, then record a second page load. The vendor requests appear in the Network tab, and the Performance tab shows how long their code runs.

Repeat the test with I Decline after closing every private window and opening a new one, because private windows share storage while any of them stays open.