<amp-next-page> does not load amp-img and also it brakes amp-ad when it is loaded from google AMP viewer
What's the issue?
I can only reproduce this in AMP documents loaded inside the Google Search results AMP viewer.
This can be reproduced If an amp page has <amp-next-page> tag that loads a page with amp-img and amp-ad tags.
The expected behavior is to load the amp-img a do not move the amp-ads.
I have found that there is an issue related to amp-next-page and amp-viewer-integration library

How do we reproduce the issue?
- Open this URL with a mobile device.
- Open any article.
- Scroll down to the amp-next-page element.
This a video of the issue https://gyazo.com/ed4a3aa12520e0c4cd43b95b03b7de46

The same document loaded from the original URL works correctly. https://www.visaooeste.com.br/onde-esta-mc-ryan-jovem-de-itapevi-diz-que-vai-gravar-musica-e-desaparece/amp/
I'm having similar issues with my amp-first website, amp-next-page has issues with layout dimensions for images and adverts, most images are showing on amp-next-pages but the dimensions are not correct - the issue only presents in the amp-viewer on mobile and desktop.
Looking at the console I can see the same errors

Not having the issue going directly to an article: https://ahaan.co.uk/article/top_stories/3070-3080-3090-hdmi-2-1-gpu-into-the-living-room
The issue is not presented when viewing an article from the amp CDN: https://ahaan-co-uk.cdn.ampproject.org/c/s/ahaan.co.uk/article/top_stories/3070-3080-3090-hdmi-2-1-gpu-into-the-living-room
The issue can be replicated on desktop using the structured data preview tool: https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fahaan.co.uk%2Farticle%2Ftop_stories%2F3070-3080-3090-hdmi-2-1-gpu-into-the-living-room
Hi i've got the same problems with many of my sites where i've implemented amp-next-page. Is there a solution to this?
Hi, same problem here!
Same problem for me
We have been seeing this since early December on CNET. Might be the same/related to 30641
Still no solutions?
I'm working with the AMP viewer team to resolve this issue. We're not able to repro it, so it's making it rather challenging.
Closing issue in favor of #31951.
The Google team has temporarily rolled back a release of module scripts from the Google AMP Cache, we'll use #31951 to track fixing the underlying issue.