X11 session support is being removed from the default install of Ubuntu with the upcoming 25.10 release. Gnome and KDE Plasma plan to remove X11 session support entirely within the next few years. Ready or not, Wayland is here.
Currently I can SSH from my MacBook/XQuartz onto an Ubuntu/Linux system and run xterm (or whatever). How does that work in the future?