The iPad connects to the iPhone and acts like a monitor.
Apple announced iPadOS in 2019. It branches from the core iOS code. It also comes with Apples’ “sidecar” concept. The iPad connects to the iPhone and acts like a monitor.