You need to set up the Phone Link app on your Windows 11 PC and connect the smartphone you want to use as a webcam. Once done ...
You can test your webcam using online tools or programs that come with Windows 10 or your Mac computer.