HTML personalized section add code that invalidate my AMP page

Hello, I made an AMP page that use a personalized html section for cookie EU alert normative.

In my personalized code I don't use the code below, mobirise add it to the begin of my html section and this invalidate the page when I submit it to the amp project validator (because it contains the custom-code attribute)