It won't.If the RCD is comparing the current passing through two poles, how does it "know" which way the electrons in an AC circuit are "flowing"
The difference is those with active electronics will have those components powered from one side or the other, and if it's designed so that they are disconnected when the device trips, connecting it incorrectly would result in those being powered even when the device has tripped. Depending on what it actually detects and how it responds, that could result in the circuitry or trip coil being destroyed.
There is also the issue of the test button on RCBOs with a solid neutral, which would be arranged so that the line is disconnected from the button when it trips. Connected wrongly and it would remain connected after tripping, and someone holding in the button for an extended time or the button sticking would cause the test resistor to overheat and fail, probably destroying other components or resulting in a flashover inside with a very big bang.