The device mirrors within IDE (the Android studio)
You can now mirror your device in the Running Devices window in Android Studio Electric Eel. By streaming your device’s display directly to Android Studio, you can execute common actions such as rotating the screen, changing the volume, or locking/unlocking the machine right from the IDE itself.
Device mirroring is available in Android Studio Electric Eel as an experimental feature. To turn it on manually, navigate to File > Settings > Experimental (Android Studio > Settings > Experimental on macOS), and check the box under Device Mirroring.

To get started, ensure you are connected to a device. All devices that you are connected to are mirrored in tabs in the Running Devices window, which you can open by navigating to View > Tool Windows > Running Devices. When you deploy an app or test to a connected device, the Running Devices window appears automatically and shows the mirrored device.

Privacy notice
If device mirroring is enabled, Android Studio automatically starts device mirroring for any connected and paired device. This might result in information disclosure for devices connected with the adb tcpip
command because the mirroring information and commands are passed over a non-encrypted channel. In addition, Android Studio uses a non-encrypted channel to communicate with the adb server, so mirroring information can be intercepted by other users on your host machine.