Our site currently fetches the correct description and adds the cookie bar notification.
I guess the google crawler takes that text because it probably scans what's in the screen for the user to see. The cookie bar has high z-index, and the crawler probably reads the contents of the cookie bar first.
It might be worth delaying the cookie bar to ensure it doesn't load whenever the user visits the page. Maybe 1.5 seconds delay at first can get rid of the wrong-description.
We don't violate GDPR in such case - because cookies are disabled by default until the user accepts it.
Our site currently fetches the correct description and adds the cookie bar notification.
I guess the google crawler takes that text because it probably scans what's in the screen for the user to see. The cookie bar has high z-index, and the crawler probably reads the contents of the cookie bar first.
It might be worth delaying the cookie bar to ensure it doesn't load whenever the user visits the page. Maybe 1.5 seconds delay at first can get rid of the wrong-description.
We don't violate GDPR in such case - because cookies are disabled by default until the user accepts it.