On my truck the rear mudguards are attached to brackets on the chassis, but the reality is that it does not really matter one way or the other.
Mudguards are normally flexible, so are not usually affected if twisted, unlike a camper body.
It probably comes down to what the regulations are in...