If you ran the Steam process or Flatpak with a custom DISPLAY #, you might have noticed that games continue to use DISPLAY=:0 regardless
The reason for this is that Valve created their own container runtime called 'Steam Linux Runtime', and for whatever reason, they made the containers disregard host environment and did not give users the ability to set custom environment variables.
- Right-click the Linux Runtime in your library