AMP · AMP page
AMP page contains disallowed HTML
This AMP page includes an iframe element. AMP does not allow iframe and requires the amp-iframe component instead, so the page is not valid AMP.
How this page is built
This page is an AMP page. Its canonical points at a non-AMP version, which names this page in a rel=amphtml link. The page includes this iframe, which AMP does not allow:
Everything else on the page is valid AMP.
Why it matters
AMP allows a fixed list of HTML elements. Some common ones, such as iframe, img, video and form, need their AMP component instead, and others, such as frame, object and embed, are not allowed at all. One disallowed element makes the whole page invalid. Google then treats it as an ordinary page and does not serve it as AMP.
How to check it
Run the page through the AMP validator (the AMP Test in Search Console, the validator at validator.ampproject.org or the amphtml-validator package), or add #development=1 to the URL and open the browser console. Crawl tools that check AMP report validation errors per page.
How to fix it
Replace the element with its AMP component, here amp-iframe, and add that component’s script to the head. Google stopped requiring AMP for Top Stories in 2021, so many sites no longer need AMP at all. If you do not need AMP, remove the rel=amphtml link and retire the AMP pages.