I would like to use the GDPR template for MD and above devices & an alert for xs and small devices. Reason = CLS in Core Web Vitals of the GDPR bar on mobile testing.
I have the following code for the small devices just before the footer. However, when pressing close, the alert will re-appear when reloading the page. Is there a solution for this?
<div class="alert alert-primary rounded-0 fixed-bottom m-0 d-md-none">
<div class="container">
<div class="row justify-content-between align-items-center">
<div class="col-lg-auto">
Blablabla
</div>
<div class="col-lg-auto mt-3 mt-lg-0">
<button class="btn btn-primary gdpr-accept" data-bs-dismiss="alert" aria-hidden="true">Close</button>
</div>
</div>
</div>
</div>