This article explains how to create a PowerPoint presentation with both landscape and portrait slides by creating two separate presentations and linking them for the desired effect. This information applies to PowerPoint 2019, PowerPoint 2016, PowerPoint 2013, PowerPoint 2010, and PowerPoint for Microsoft 365.
PowerPoint: Combine Landscape and Portrait Slides
If you want to use slides in both landscape and portrait orientation, create two separate presentation files. The landscape-oriented slides are in one PowerPoint presentation, while the portrait-oriented slides are in the second PowerPoint presentation.
Then, link the two presentations together using action settings from one slide in the landscape presentation to the next slide you want (a slide in portrait orientation) in the second presentation (and vice versa).
The final slideshow will flow perfectly and your audience will not notice anything strange when you click on a particular image or area or switch your mouse to move from one mode to another.