You can use your iPad as a second display for your Mac through the Sidecar feature, which comes pre-installed.
Learn how to configure a second display on a Mac to expand your workspace and increase productivity with this step-by-step guide. Adding a second display to a Mac is typically a straightforward task.
If you changed your screen orientation by accident or simply prefer it a different way, you can rotate or flip it in Windows ...