Question [Q] Mismatched orientation

Okay, The problem I'm experiencing is after water damage. The tablet shows in portrait but the touch control is reading it as landscape vise versa when you flip the orientation to land scape the controls are then in portrait. Not sure if there is really anything that can be done as it is almost impossible to control the device. None of the home button back button or menu work either. Any ideas or advice are welcome.