On Windows 10 and 11, you can use these steps to fix a second monitor not detected on your PC, and here's how.
Microsoft has just released Windows 11 Preview Build 22631.5984 and Windows 10 Preview Build 19045.6390 with bunch of fixes.