How to add a script in the writer field?

Hello! We’re looking to enhance our Cookie Policy by incorporating a script that presents all cookie settings in the writer field. However, we’ve encountered an issue where the writer field sanitises all script tags. Is there a workaround available ?