This extension creates a TYPO3 content element that adapts an iframe snippet so that the content manager can block it in compliance with data protection regulations. See: https://help.consentmanager.de/books/cmp/page/how-to-block-third-party-codes-cookies-if-no-consent-is-given
Add this extension to your TYPO3 setup. Install using composer: composer req jaiprucl/cmframe.