Example: Checking consent with Alpine.js
If you're using Alpine.js & need to conditionally display elements based on consent status, you may do something like this, using the x-show
directive:
1<div x-show="window.cookieNotice.hasConsent('Marketing')">2 <iframe src="https://youtube.com/embed/xxx">3</div>