Should be a transfer switch mounted in MH....close to shore power cord.
Shore power cord is one input
Generator power cord is other input
Output then goes to your Main AC Panel
Transfer switch swaps between the two inputs....shore or gen.
Yours is stuck on Gen input..burnt contacts/bad relays etc.