Following the infamous "CJEU cookie ruling" of 1.10.2019, it can be assumed that the display of YouTube videos also requires the prior consent of the user (so-called OptIn).
By default, YouTube embedded videos (even if "Enhanced Privacy Mode" is enabled) always set cookies. At the latest when they are played.
YouTube now allows the embedding of videos without the use of cookies. A separate domain is offered for this purpose:
In TYPO3, a video is usually integrated via the Pure HTML content element of the Special Elements tab (more info on the topic here: Integrating videos in TYPO3)..
The code usually looks like this:
<iframe width="560" height="315" src="https://www.youtube.com/embed/sOwtIkAO3ZI"
frameborder="0" allow="accelerometer; autoplay;
encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Now simply change the URL under the "src" attribute from youtube.com to youtube-nocookie.com:
src="https://www.youtube-nocookie.com/embed/sOwtIkAO3ZI"
The following video does not set cookies:
It is also possible to deactivate videos via the "frosted glass effect" and then have them activated by the user via mouse click as part of the OptIn method. However, this requires an extension, which is described here.