Due to increased security and permissions safeguards with macOS (10.15 or later), you may need to adjust your Security & Privacy settings to enable screen sharing of your desktop and other applications on your computer. Here's how:
Go to System Preferences > Security & Privacy
Click on Privacy.
Select Screen Recording.
Check the box next to your browser.