• stories

Desktop and Landscape Mode Support


amp-story supports a desktop and landscape experience.


AMP Stories are written using AMPHTML and they use their own AMP extension: amp-story. The first step is to import the amp-story in the header.

<script async custom-element="amp-story" src=""></script>

Stories can be styled using CSS:

<style amp-custom>
  amp-story {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI ", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji ", "Segoe UI Emoji ", "Segoe UI Symbol ";
  amp-story-page * {
    color: white;
    text-align: center;

Desktop and landscape support

If supports-landscape attribute is specified on the amp-story element, it will: - allow the story to be seen when a mobile device is held in a landscape orientation - change the desktop experience to an immersive full bleed mode, replacing the default three portrait panels experience

<amp-story standalone supports-landscape
  title="Stories in AMP - Hello World"
  publisher="AMP Project"

  <amp-story-page id="page-1">
    <amp-story-grid-layer template="fill">
      <amp-img src=""
      height="1277" layout="responsive"
  <amp-story-page id="page-2">
    <amp-story-grid-layer template="fill">
      <amp-img src=""
      height="1280" layout="responsive"
  <amp-story-bookend src="" layout="nodisplay">
Need further explanation?

If the explanations on this page don't cover all of your questions feel free to reach out to other AMP users to discuss your exact use case.

Go to Stack Overflow
An unexplained feature?

The AMP project strongly encourages your participation and contributions! We hope you'll become an ongoing participant in our open source community but we also welcome one-off contributions for the issues you're particularly passionate about.

Edit sample on GitHub