@Grace-Dert said in Mirrored X axis:

M574 X2 Y2 Z0 S0 ; Define active high microswitches

In that case you should change that Z0 to Z1 (assuming it's a zmin endstop). Z0 means no endstop configured.