A more careful and more detailed description may help.
BUT essentially, it's broken, and unlikely to be fixable by other than a repairer.
Websearch for similar faults - such things may be known by others.
If N people report it and say it is unfixable, it may be.
'Just in case' try:
(1) Turn camera on. Take battery out. Turn camera off. Leave for say 30 minutes 9but 20 seconds is probably enough). Replace battery. Turn back on.
(2) Perform as full a system reset as is available.
(3) Reflash with latest firmware if possible.
If it is on the long side whether the camera is in portrait or landscape mode
AND is on the saved image whether the camera is in live view or not
AND is present on the live view screen before the shot is taken
AND after it is taken
then (probably) it is functionally in the sensor or sensor-related electronics.
If any of those AND conditions are not met one may have to think harder.
Regardless, though, unlikely to be fixable if the suggestions above do not work.