The short answer is to flip the reversing switch on the electrical panel at the helm and don't worry about it...
You are up on the trailer so electrolysis is not an issue...
The longer answer is that some genius has reversed the hot and neutral wires somewhere on the shorepower...
The first issue there is the question: Is there a shock hazard?
Best way to answer that is to get a VOM, run a separate wire from a ground connection, over to the boat (off the metal case of the shore supply or stick a screw driver into the dirt and use that for ground)... The using the meter check the AC voltage between that ground and exposed metal on the boat - the anchor winch is a good spot for that - also the metal on the electrical panel at the helm... Check the railing before you stick your arm through the rail to touch the probe to the winch... Check it with the reversing switch set both for Normal and Reverse...
Obviously if there is more than 1 or 2 volts showing from the exposed metal to ground, then the shore power MUST be disconnected and repairs made because it is a shock hazard...
Edit:
I erased a lengthy treatise on how to rewire shore power/plugs/etc.
I'm trying to learn to inconvenience fewer electrons...
But basically, if you don't already know how, best to get some help...
cheers