1. You can see your face and upper body by pointing the phone screen at yourself with the front camera that comes with your phone.
2. Look for other items as support in the gym, and put the phone in a suitable position to adjust the angle for shooting.
3. Find someone else to take your photos in the gym, or ask someone else to take your own photos.