Hello, I'm Louie, and I'm happy to help you today. Hope you're doing well and safe there. I'm sorry that you're having trouble with screen mirroring.
You may try the solutions provided below.
Fix 1: Make sure the network sharing feature is enabled on your computer
The Cast to Device feature requires the network sharing feature turned on your computer. See how to check if you turn on the network sharing feature on your computer:
Type network in the search box from Start. Then click Network status from the top.
Click Network and Sharing Center.
Click Change advanced sharing settings.
Make sure these two items are checked: Turn on network discovery and Turn on file and printer sharing. Then click Save changes.
Try the Cast to Device feature again to see if it succeeds.
Fix 2: Reset the Stream Permissions on your Windows 10 computer
Type media in the search box from Start. Then click Windows Media Player on the top.
Click Stream > Allow Internet access to home media…Then click Allow Internet access to home media on the pop-up window.
Click YES when prompted by User Account Control.
Click OK.
You should then see the Windows Media Player window again. Click Stream > Turn on media streaming…
Click Turn on media streaming.
Click OK.
It should then be back on the Windows Media Player window. Click Stream. You should then see Automatically allow devices to play my media... is ticked on. If not, tick on it.
Close the Windows Media Player window.
Try the Cast to Device feature again to see if it succeeds.
Fix 3: Updating the wireless network driver
Press Windows key + R to open up a Run dialog box. Then, type “devmgmt.msc” and press Enter to open up Device Manager. If prompted by the UAC (User Account Control), click Yes to grant admin access.
Once you’re inside Device Manager, expand the drop-down menu associated with Network Adapters, then right-click on your Wireless network adapter and choose Properties from the context menu.
Once you’re inside the properties screen, select the Driver tab and click on Update driver.
From the next screen, click on Search Automatically for updated driver software. Wait until the scan is complete, then follow the on-screen instructions to install the latest version available.
Restart your computer and see if the issue has been resolved once the next startup sequence is complete.
Hope this helps.
Kind ,
Louie