This depends on the platform / browser – images store metadata about orientation in them, and that orientation data may or may not be honored by the viewing platform / browser.
It is possible to strip the metadata, but I can’t recall seeing any badly (incorrectly) oriented images on any device recently. Can you upload one of the problem images here to this topic?