Age gate triggered at every breakpoint

Hi everybody, I have an age verification gate on my clients website, and I followed every detail on this thread. @mattvaru I could use your help on this :). It works correctly on local storage, but when I resize the browser, the age gate reappears at every breakpoint. I can not figure out how to fix this and the site needs to go live tomorrow. Please help!

Here is my share link.

Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Hey Tom, if you’re just doing the modal and the suppression, and not an actual “age gate” that blocks access to content, you can just use SA5’s lib.

Key advantages;

  • Element is hidden on page load
  • If the suppression cookie exists, the element is removed from the DOM

This makes it impossible to it to be accidentally triggered by interactions, breakpoint changes, etc.