If you’re just using UIAspectRatioConstraint, I’m afraid theres more to it.
I suggest reading the full article for it: