iOS not updating viewport size immediately on orientation change, viewport stretched

How did you achieve dynamic ios portrait and landscape orientation? is there an option same as android where it says full sensor??