Unity 2021 Visual Studio

TeamViewer grabs the screen as it is currently displayed.
In other words, if Windows did not draw anything, TeamViewer cannot grab the screen, so you will only see a black screen. Unfortunately, we cannot do anything against that.