Camera is triggered but rotation messes it up

EXIF tags are returning an iOS image with rotation.
The camera icon triggers camera upload if mobile browser but still the
issue with images being rotated persists