AMP version SEO problem

Hey, i want amp version of my index file but external cs not allowed in amp file
so what i do convert php file to amp version