Image cropped wrong on mobile problems usually happen when a desktop image is forced into a mobile container with object-fit:cover, a fixed height, the wrong object-position, or a background image with the wrong focal point.
Mobile Image Crop Fix
Why is my image cropped wrong on mobile?
An image cropped wrong on mobile can cut off a face, product, logo, headline area, or important detail. The image is not necessarily broken. The browser is usually doing exactly what the CSS asked: filling a narrow mobile box with cover. The fix is to control the image ratio, focal point, object position, and mobile crop rules instead of letting the browser guess.
- object-fit
- object-position
- aspect-ratio
- background-position
What the bug looks like
The subject disappears, a face is cut off, a product is too zoomed in, or only the wrong side of the image is visible.
Why it happens
The mobile container has a different shape than the image, so the browser crops the image to fill the box.
What usually fixes it
Use a better aspect ratio, adjust object-position, avoid tiny fixed heights, or provide a mobile-specific crop.
object-fit:cover is cropping the wrong part
object-fit:cover is not bad. It is often the right choice for cards and hero images. But on mobile, a narrow container can crop the subject if the focal point stays in the wrong place.
Broken code
Default center crop.hero-image {
width: 100%;
height: 220px;
object-fit: cover;
object-position: center center;
}
Broken visual result
The crop fills the box but cuts away the focal point.
Correct code
Control focal point.hero-image {
width: 100%;
height: 220px;
object-fit: cover;
object-position: center 28%;
}
Fixed visual result
The crop still fills the box, but the important area stays in view.
object-position tells the browser which part of the image should stay visible.The mobile image container is too short
A short fixed-height container makes the crop more aggressive. If the image has important vertical detail, a tiny mobile height can remove the top, bottom, or center of the subject.
Broken code
Fixed short height@media (max-width: 640px) {
.image-wrap {
height: 120px;
overflow: hidden;
}
.image-wrap img {
width: 100%;
height: 100%;
object-fit: cover;
}
}
Broken visual result
The image box is too short for the visual content.
Correct code
Use aspect ratio.image-wrap {
aspect-ratio: 4 / 3;
overflow: hidden;
}
.image-wrap img {
width: 100%;
height: 100%;
object-fit: cover;
}
Fixed visual result
The image keeps a consistent shape without being squeezed flat.
aspect-ratio is usually safer than a tiny fixed height for responsive images.background-size:cover uses the wrong background position
Background images have the same crop problem as normal images. If you use background-size:cover without adjusting background-position, mobile can show the wrong part of the image.
Broken code
Background centered blindly.hero {
background-image: url(hero.jpg);
background-size: cover;
background-position: center;
}
Broken visual result
The background fills the section, but the subject is not where mobile needs it.
Correct code
Mobile background focal point.hero {
background-image: url(hero.jpg);
background-size: cover;
background-position: center top;
}
@media (max-width: 640px) {
.hero {
background-position: 35% center;
}
}
Fixed visual result
The mobile background position keeps the important part visible.
background-position is your focal point control.You need a mobile-specific crop, not just CSS positioning
Sometimes the desktop image is simply the wrong shape for mobile. If the important content is spread across a wide image, no amount of object-position will make every detail fit in a narrow crop.
Broken code
One image for every screen<img
class="hero-image"
src="desktop-wide-image.jpg"
alt="Product preview"
>
Broken visual result
The desktop composition is too wide for mobile.
Correct code
Use picture source<picture>
<source
media="(max-width: 640px)"
srcset="mobile-crop.jpg"
>
<img
class="hero-image"
src="desktop-wide-image.jpg"
alt="Product preview"
>
</picture>
Fixed visual result
The mobile version is composed for the mobile container.
<picture> lets you serve a mobile crop when CSS alone cannot protect the subject.A production-minded responsive image crop pattern
A reliable responsive image pattern controls the container ratio, image fitting behavior, focal point, and optional mobile source. It does not depend on one desktop crop magically working everywhere.
Premium code
Safe responsive image crop<picture class="media">
<source
media="(max-width: 640px)"
srcset="image-mobile.jpg"
>
<img
class="media__image"
src="image-desktop.jpg"
alt="Descriptive image alt text"
>
</picture>
.media {
display: block;
overflow: hidden;
border-radius: 18px;
aspect-ratio: 16 / 9;
}
.media__image {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
object-position: var(--image-focus, center);
}
@media (max-width: 640px) {
.media {
aspect-ratio: 4 / 3;
}
.media__image {
object-position: var(--image-focus-mobile, center 30%);
}
}
Premium visual result
The crop changes safely on mobile without losing the important subject.
Fast practical rule
If an image is cropped wrong on mobile, do not remove object-fit:cover immediately. First adjust the container ratio and object-position. If the desktop composition still fails, use a mobile-specific crop with <picture>.
Debug checklist
- Inspect the image container height, width, and aspect ratio on mobile.
- Check whether the image uses
object-fit:coveror a background withbackground-size:cover. - Adjust
object-positionto protect the image’s focal point. - For background images, adjust
background-positionat mobile breakpoints. - Replace tiny fixed heights with
aspect-ratiowhere possible. - Use
object-fit:containonly when showing the full image matters more than filling the box. - Use
<picture>when mobile needs a different crop or composition. - Test real images, not only placeholder rectangles, because focal points change the result.
object-position in DevTools and see whether the important subject comes back.
cover.
Final takeaway
An image cropped wrong on mobile is usually a responsive composition problem. The image is being forced into a mobile shape, and the browser has to decide what to cut.
Control the crop intentionally. Use a safer aspect ratio, choose the right object-position or background-position, and use a mobile-specific crop when the desktop image cannot work on a narrow screen.
Want more fixes like this?
Browse more image, mobile, and responsive CSS debugging guides in the FrontFixer library.