I have same problem.
I tried sudo apt install xdg-desktop-portal-gnome and/or disable "Use hardware acceleration when available" from browser. The problem was fixed but not completely.
I applied the solution found here: https://askubuntu.com/a/1416189/1591703
I changed Nvidia driver 510 to another version and it solved my problem.
I have same problem. portal- gnome and/or disable "Use hardware acceleration when available" from browser. The problem was fixed but not completely. /askubuntu. com/a/1416189/ 1591703
I tried sudo apt install xdg-desktop-
I applied the solution found here: https:/
I changed Nvidia driver 510 to another version and it solved my problem.