Running Xwayland in rootful mode with the -hidpi option fails and outputs the following error:
XWAYLAND: xdg_surface#15: error 3: must ack the initial configure before attaching buffer
Reproducible on both cosmic-comp 1.0.8 and niri 25.11 and requires the scale factor to be above one (1.25 in my case).
Sadly wasn't able to test this with Anvil, as I couldn't figure out how to change the scale factor.