“and the image i click on does not link to the correct page”
Where does it link to instead?
“… on the mobile device they are turned sideways …”
I once had a problem with the exif-orientation-tag of the pictures. When you turn the camera (from horizontal to vertical) the camera will write the changed angle into the images data. To edit the picures I used an older version of Corel-PhotoPaint. It ignores the existing orientation-tag. When I turned the images to fit my needs, it writes down another orientation-tag. That results, for example, in the information of a 180° turn (instead of a 90° turn I intended and saw on the screen).
Loading all my pictures to a gallery in WP works fine, as far as looking on the site with a PC. But the phone has some turned images.
Uploading images WP created the different sizes, means: creating “new” images … small, middle, large. Which were used for PC.
The phone uses the images, you uploaded … exactly like it is. And therefore with different interpretation (or just: recognizing) of the exif-tags.
There was a discussion about thar in the german WP-Forum, but I am too lazy to look it up again …
So … much words for a simple guess:
Did you turn around the pictures in your editing software?
And: Can you point to a picture on your site, showing your issue?