<!DOCTYPE html>
<html>
  <head>
    <style>
      @page :left {
        size: portrait;
      }

      @page :right {
        size: landscape;
      }

      p {
        page-break-before: right;
      }
    </style>
  </head>
  <body>
    <p style="column-count: 3; background-color: gray; border: solid">
      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vitae
      fringilla mauris. Quisque commodo eget nisi sed pretium. Mauris luctus nec
      lacus in ultricies.
    </p>
    <p style="