I was using the iframe URL correctly on my website:
https://www.youtube.com/live_chat?v=<id_video>&embed_domain=<your_domain>
Suddenly it stopped working. After I added referrerpolicy="origin" to the iframe element, it started working again.
referrerpolicy="origin"