Here are the steps
- Connect your device with your machine. Check if it is connected properly using adb devices command on cmd.
- Now open chrome on your machine and type chrome://inspect/#devices
- You see your device on the screen.
- Now open chrome browser on your device and type any website. Or open any application which is made up of javascript.
- You will see the url of that application.
- Click on inspect and the device is cast on your chrome screen of your machine.