Tools & workflow · Tutorial
One Remotion scene, three sizes: 16:9, 9:16 and 1:1 without cropping
Registers one Remotion component as three compositions (1920x1080, 1080x1920, 1080x1080) and adds a useLayout hook that reads useVideoConfig() and returns the format, a size unit and a safe area. For vertical it keeps text out of the top 10%, bottom 20% and right 15% where platform buttons and captions sit, and a BigNumber example stacks in vertical and square but sits side by side in landscape. The author says the safe-area figures are approximations to check on a real phone.
Read at source