It's very strange that you are having this issue in two different iPhones, and this makes me think that is not a hardware issue. It looks like some of your settings are not appropriate (check if zoom is set to standard, and/or font size is normal).
To my knowledge, this is the only support guide that you can use.
If the screen doesn't rotate on your iPhone, iPad, or iPod touch - Apple Support
And I don't think this is related to iOS 11.2.1 (I would have read about this in some threads of this community),
But again, if the issue still persists, contact Apple at: Contact Apple Support
Regards
Giulio