None of this is a problem on Debian stable. I even run discord as a Flatpak - screen share works fine. I believe there's systems for that now (way pipe? xdg stuff?)
Ubuntu 24.04 is older than Debian stable currently.
Ubuntu 24.04 is older than Debian stable currently.
You need to get portals working correctly for screensharing to work