Apple’s Universal Control Is Here & It’s Amazing
Use your iPhone, iPad, or iPod touch to control another device. Connect your devices to the same Wi-Fi network. Sign in to iCloud with the same Apple ID on both devices. If you want to control a Mac, choose Apple menu  > System Preferences on your computer.