Most videos now need three versions: 16:9 for YouTube, 9:16 for TikTok, Reels and Shorts, and 1:1 for feeds. The quick fix is to make the landscape version and crop it. That usually goes wrong in two ways: half your text falls off the sides, and what's left sits under the platform's own buttons and captions.

I've been building explainer scenes in Remotion (videos written in React), and I ended up with a simple pattern: one component, three compositions, and a small layout helper that tells the scene which shape it's in. Each size gets its own layout instead of a crop. Here's how it works.

1. Register the same scene three times

A Remotion Composition has its own width and height, so the same component can be registered once per size:

// Root.tsx import {Composition} from 'remotion'; import {BigNumber} from './BigNumber'; const SIZES = { '16x9': {width: 1920, height: 1080}, '9x16': {width: 1080, height: 1920}, '1x1': {width: 1080, height: 1080}, } as const; export const RemotionRoot = () => ( <> {Object.entries(SIZES).map(([name, size]) => ( <Composition key={name} id={`BigNumber-${name}`} component={BigNumber} durationInFrames={150} fps={30} width={size.width} height={size.height} defaultProps={{value: 98, label: 'of teams ship faster'}} /> ))} </> ); 

In Remotion Studio you now see BigNumber-16x9, BigNumber-9x16 and BigNumber-1x1 side by side, all driven by the same props.

2. Let the scene ask what shape it's in

Inside the scene, useVideoConfig() gives you the width and height. A tiny hook turns that into three things: which format this is, a unit for sizing, and a safe area to keep text inside.

// layout.ts import {useVideoConfig} from 'remotion'; type Format = 'landscape' | 'vertical' | 'square'; export const useLayout = () => { const {width: w, height: h} = useVideoConfig(); const ratio = w / h; const format: Format = ratio > 1.15 ? 'landscape' : ratio < 0.87 ? 'vertical' : 'square'; // 1 when the short side is 1080 px: multiply every size by it. const u = Math.min(w, h) / 1080; const safe = format === 'vertical' ? {left: w * 0.055, top: h * 0.1, right: w * 0.85, bottom: h * 0.8} : {left: 60 * u, top: 40 * u, right: w - 60 * u, bottom: h - 40 * u}; return {format, w, h, u, safe}; }; 

The ratio thresholds mean a custom size (say 1200 x 1500) still gets the nearest layout instead of breaking.

3. The vertical safe area

On TikTok, Reels and Shorts the app draws on top of your video: tabs at the top, the caption and music line at the bottom, and the like/comment/share column on the right. My rule of thumb for 9:16 is to keep text and key content out of:

  • the top 10%,
  • the bottom 20%,
  • the right 15%.

These are approximations, and each platform changes its interface now and then, so check a test upload on a real phone. But they catch the worst problems: a headline hiding behind the "Follow" button, or your call to action sitting under the caption.

4. Lay out each format, don't just scale it

This is the part a crop can't do. A "big number" scene works best side by side in landscape, and stacked in vertical and square:

// BigNumber.tsx import {AbsoluteFill, interpolate, spring, useCurrentFrame, useVideoConfig} from 'remotion'; import {useLayout} from './layout'; export const BigNumber: React.FC<{value: number; label: string}> = ({value, label}) => { const frame = useCurrentFrame(); const {fps} = useVideoConfig(); const {format, u, safe} = useLayout(); const progress = spring({frame, fps, config: {damping: 200}}); const shown = Math.round(interpolate(progress, [0, 1], [0, value])); const stacked = format !== 'landscape'; return ( <AbsoluteFill style={{background: '#F6F4EF', color: '#1D2433'}}> <div style={{ position: 'absolute', left: safe.left, top: safe.top, width: safe.right - safe.left, height: safe.bottom - safe.top, display: 'flex', flexDirection: stacked ? 'column' : 'row', alignItems: 'center', justifyContent: 'center', gap: (stacked ? 40 : 80) * u, }} > <div style={{fontSize: (format === 'square' ? 260 : 300) * u, fontWeight: 800}}>{shown}%</div> <div style={{ fontSize: 64 * u, maxWidth: (stacked ? 800 : 700) * u, textAlign: stacked ? 'center' : 'left', }} > {label} </div> </div> </AbsoluteFill> ); }; 

Three details do most of the work:

  • Everything is placed inside safe, never against the frame edges.
  • Every size is multiplied by u, so the same numbers work at 1080 p, 4K or a custom size.
  • The format decides the arrangement (row or column, text alignment, font size), not just the scale.

5. Check all three at once

Before rendering full videos, render a still of the same frame in every size and look at them next to each other:

npx remotion still src/index.ts BigNumber-16x9 out/big-16x9.png --frame=60 npx remotion still src/index.ts BigNumber-9x16 out/big-9x16.png --frame=60 npx remotion still src/index.ts BigNumber-1x1 out/big-1x1.png --frame=60 

Three PNGs in a few seconds, and layout bugs jump out right away. It's much faster than scrubbing three videos.

What I built with it

I used this pattern for a set of seven explainer scenes: title card, big number, comparison, step list, device screens (phone and laptop), notification and call to action. Each one comes in all three sizes, with music beds and sound effects made for them and one theme file for colours, fonts and logo. I've packaged them as Explainer Kit: kaelstudioph.gumroad.com/l/explainer-kit.

You don't need it to use anything above. The pattern is the useful part, and I hope it saves you a few cropped headlines. If you try it, I'd love to see what you make in the comments.

Built with Remotion. Remotion is free for individuals and teams of up to 3 people; larger companies need Remotion's company license.