Is it possible you tilted your phone/iPad and the screen simply rotated?
Seems extremely likely from the description that the problem was the mobile device. Obviously the camera wasn't upside down, so it had to be that the display had rotated. And it's very unlikely that had anything to do with the power lines either; I've seen that happen when the device is nearly level.