The default "gaming mode" that the Deck boots into is running wayland, specifically valve's own gamescope compositor which has a lot of workarounds and breaks from wayland's spec to allow for better gaming performance.
When you quit out to "desktop mode" it loads into KDE Plasma with X11, although with recent changes to Plasma, it may well be that the desktop mode will change to being wayland based too.