Re: black screen when using Teams from browser.
Check you have environment variables set correctly: XDG_SESSION_TYPE=wayland and XDG_CURRENT_DESKTOP=sway.
I set up them in my .zshrc before starting sway. This helped me to fix the black screen issue. Hope it helps you too!