Wide cutTablets and desktops
Portrait cutPhones
Why give phones their own cut?
A wide shot sets the scene on a laptop. Squeeze it into a tall phone screen and the browser crops the middle, which often loses the subject. A portrait edit lets you choose what stays in frame instead of leaving it to the crop. It’s also a smaller file, so the hero starts sooner on a slower connection.
How do I show a different video on mobile?
Give each <source> a media condition, from widest to narrowest, with the phone version last and no condition so it catches everything else. The browser takes the first source that matches and that it can play.
The video’s built-in poster takes only one image, so the example puts a responsive <picture> behind the video. Each screen gets the opening still that matches its cut, and the reserved shape stops the page jumping as it loads.
<div class="responsive-clip">
<picture>
<source srcset="https://speedyclip.com/media/home/doorway-wide.webp" media="(min-width: 768px)">
<img src="https://speedyclip.com/media/home/doorway-tall.webp" alt="">
</picture>
<video controls muted playsinline preload="none" tabindex="0"
poster="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" aria-label="Bronze doors opening onto the sea">
<source src="https://speedyclip.com/media/home/doorway-wide.mp4" type="video/mp4" media="(min-width: 768px)">
<source src="https://speedyclip.com/media/home/doorway-tall.mp4" type="video/mp4">
</video>
<button type="button" hidden>Play video</button>
</div>
<style>
.responsive-clip { position: relative; aspect-ratio: 674 / 1280; }
.responsive-clip :is(picture, img, video) {
position: absolute; inset: 0;
width: 100%; height: 100%; object-fit: cover;
}
.responsive-clip.is-ready video { visibility: hidden; }
.responsive-clip button { position: absolute; inset: 50% auto auto 50%;
transform: translate(-50%, -50%); }
@media (min-width: 768px) {
.responsive-clip { aspect-ratio: 1256 / 720; }
}
</style>
<script>
for (const clip of document.querySelectorAll('.responsive-clip')) {
const video = clip.querySelector('video');
const play = clip.querySelector('button');
clip.classList.add('is-ready');
play.hidden = false;
play.addEventListener('click', async () => {
try {
await video.play();
clip.classList.remove('is-ready');
play.hidden = true;
video.focus();
} catch {
play.textContent = 'Retry playback';
}
});
}
</script> Check it on real screens
Reload the page at each width and play it. Look at the framing and the still, and make sure any headline reads over every cut. The browser picks a source when the page loads, so resizing a window won’t swap the video. A reload will.
If the clip plays by itself, keep it muted, give people a way to pause it, and show the still to anyone who has turned on reduced motion. The autoplay guide covers the details.
Common questions
- Does a phone download both the desktop and mobile videos?
- Not when the versions are sources of a single video element. The browser picks one source and downloads only that file. Two separate video elements, one hidden with CSS, can mean both files load.
- Can the mobile version be a different edit, not just a crop?
- Yes. Each screen size can have its own file, so the phone version can be a tighter crop, a portrait edit or a different shot altogether, as long as it suits the same spot on the page.
- What screen widths should I switch at?
- A common split is desktop from 1024 pixels wide, tablet from 768, and phones below that. Use the breakpoints your site already uses so the video changes along with the layout.
- Do I need a separate mobile cut on Speedy Clip?
- No. Every upload gets lighter, phone-sized versions automatically. A cut of your own, framed for portrait screens, is optional and available on paid plans.
Do it in Speedy Clip
- Upload the wide version. Speedy Clip makes the desktop, tablet and phone sizes and their stills automatically.
- On a paid plan, add a phone or tablet cut you’ve framed yourself.
- Preview each screen size, then copy one embed for your site.
The embed lists every version, and each visitor gets the one that fits their screen and browser. See the file sizes for this example.
Explore background video hosting