PenciDesign replied
Hi,
The AMP pages doesn't allow for custom js and too much other things.
And you have a plugin WP Rocket has been minified js and render to front-end.
I don't recommend you use WP Rocket if you use AMP because that plugin will make any site can't be validate with AMP.
Please clearly all the cache and deactivate WP Rocket - and check this guide to know how to optimize your site by use W3 Total Cache & Autoptimize.
Best Regards,
PenciDesign