iPad has a regular size class in vertical and horizontal directions in both portrait and landscape orientations.
iPhone has a regular size class in vertical direction and a compact size class in horizontal direction in portrait orientation. And has a compact size class in vertical and horizontal directions in landscape orientation.
You can select the horizontal trait and vertical trait when you are placing UI components.
If components are coded for regular class, they will disappear when in compact mode.