You are most definitely running Discord in XWayland. You need to add chromium flags to make it run in native Wayland. You also need to have an xdg desktop portal to support screen sharing.
If you want screenshare to work on an app that can't run in wayland, use XWaylandVideoBridge