Cookie Custom code affecting visibility of video in rich text

Hi!

I’m experiencing an issue where the Cookie script in my project’s custom code Head section is causing videos within rich text to not be visible. Webflow support found this bug and I have tested this by removing the code and it has fixed the problem.

This is the OneTrust script:

I am wondering if anyone else has experienced this and how they were able to get around the issue? Is it just a case of trying another cookie consent script?

Thanks!