Check if the Portrait Orientation Lock is on; it stops the iPhone screen from rotating. Open Control Center and tap the lock icon to turn off rotation lock if it's active. Some apps don't rotate; test ...
If your iPhone 17 Pro screen won't rotate, check Portrait Orientation Lock, test a supported app, and try these fixes.