Peace first,
Then, assuming you are talking about the GDRP :
So far, the only approach I found here on WebmasterWorld is to use the modal that Adsense offers themselves.
This is beacuse it sound simpler, and for years, publishers have been requesting such feature. Adsense was blaming publishers, for not following the consent recommendation mechanism , but was not it self really explaining how to be compliant, and Adsense was taking great care not to tell what to do, for not being responsible of anything (in theory).
So, there are plenty of consent manager provider (CMP) which popped. All offering , supposedly ready-to-use consent banner.
None of them are fully compliant, and now that the Transparency and Consent Framework of the IAB is failing to be compliant, then ... nearly everything is in violation of the GDPR.
Also, all third party js calls can be subject to violation of the GDPR ...
Now, to answer your question, I did my own banner. It might not be fully compliant either but at least I understand what it does, when, and why. Also I keep the control about what is showing on my page.