Touchpad rotation/inversion on Wayland

I have an external touchpad (Magic Trackpad 2), which I like to use for ergonomic reasons (I can place it in a way that allows to keep my hand in a natural position).
However, the touchpad itself is built with a slight negative angle, which causes wrist extension and pain.

I would really prefer to rotate it 180 degrees/invert it in software, but the only way I found is with xinput, meaning Xorg, which literally defeats half of a touchpad utility.

Is there a way to do this on Wayland?