USB
Download the Scrcpy and extract the zip file. Connect the device to your PC via USB cable. Allow USB Debugging confirmation on your phone. Run the application “Scrcpy” Wifi
How to cast Android screen to laptop using Wi-Fi using Scrcpy (Windows)?
In order to cast Android screen on a PC wirelessly, follow the previous steps and install Scrcpy, then simply enable the wireless connection on ADB. Also, make sure your PC and Android device are on the same wireless network.
Connect your device to your PC and allow USB debugging confirmation. Enter the command “adb devices” to confirm the connection. Now, enter the command “adb tcpip 5555” to enable WiFi Debug mode. Enter the command “adb connect <device IP address>”
You can locate your Android device’s IP address in Settings — About phone — IP address. Enter the command “scrcpy”