Visual artifacts in x2go XFCE4 sessions after upgrade from 20.04 to 21.04

I had the same problem after upgrading to XUbuntu 21.04.

To fix the issue I disabled "Display compositing" by going to Settings > Window Manager Tweaks > Compositor.

I think it's related to Wayland as mentioned by @heynnema