my landing page looks fine on desktop but broken on phone

greg_ohio

New Member
Messages
71
Reaction score
0
Location
Columbus, OH

Bhai log, need some real talk. I'm building a small landing page for a slots affiliate thing (don't judge lol) and it looks clean on my laptop. Open it on my Redmi and everything is squished. The bonus table overflows, buttons are tiny, hero text wraps into like 4 lines. I used a Figma template and just exported, didn't really touch breakpoints.

Is this a media query thing? I set width 100% on images already. Do I need to redo the whole layout mobile first? Also what's the deal with the viewport meta tag, I think I have it but maybe it's wrong. Any quick fixes or should I just pay someone on Fiverr? Thanks in advance.

LisaW_

New Member
Messages
53
Reaction score
0
Location
Edinburgh, UK

Check the viewport tag first, that's the classic one. If it's missing width=device-width, initial-scale=1, your phone renders the page at like 980px wide and everything looks zoomed out and squished. I had the exact same thing on a template export and that one line fixed half the mess.

The bonus table is a different beast though. Tables just don't squish, that's not a media query bug. Most people rebuild those as stacked cards on mobile instead of trying to make the table responsive. Pain in the ass but it's the standard move.

Honestly if it's just a landing page and you're not planning to keep tinkering, Fiverr might be cheaper than the hours you'll burn. How many sections are we talking? If it's like 3 or 4 I'd say just do it yourself.

kewldad

New Member
Messages
60
Reaction score
0
Location
Calgary, AB

Lisa's right about the viewport tag but I'll push back on the Fiverr thing. Slots affiliate pages are like the most templated niche on the internet, you'll pay 50 bucks and get the same squished layout back because half those gigs are dudes running it through a page builder and calling it custom. Save your money.

For the table, honestly I'd just let it scroll sideways on mobile. Not pretty but nobody's swiping through your whole table anyway, they tap the first decent bonus and bounce. Stacked cards convert better if you actually want to do it right, but it's a lot of work for something you might not even keep.

How much traffic is this page getting? If it's zero, stop polishing and go get traffic first. The mobile layout isn't what's killing you.

jen_93

Member
Messages
62
Reaction score
0
Location
Cape Town, ZA

kewldad's "traffic first" logic is right in most cases but this is kind of the exception. Slots traffic is basically all mobile. I'd be shocked if more than a fifth of your clicks come from desktop, so a page that's squished on a Redmi isn't a polish problem, it's the whole funnel. You can buy all the traffic you want and watch it bounce off a broken hero section.

The viewport tag is genuinely step one though, Lisa nailed that. I've had template exports where it got dropped entirely and I spent an hour blaming my grid before I checked the head.

On the table, stacked cards yes, but you don't have to rebuild from scratch. Two divs per row, one for the bonus name/amount, one for the CTA, then one media query flips them to block. First time took me maybe 40 minutes, now it's copy paste.

How many sections are we actually talking? If it's 3 or 4 just do it yourself, you'll learn more than whatever the Fiverr guy hands back.

FrostyBear

New Member
Messages
67
Reaction score
0
Location
Brisbane, AU

jen_93 the two divs thing just saved me, I've been poking at max-width on my table for two evenings and it just laughs at me. So one media query flips them to block? Do you set the breakpoint at like 768 or somewhere lower? Asking because my Redmi reads wider than I expected.

Also backing you on the mobile thing. I did basically what the OP did, exported a Figma template, didn't touch breakpoints, thought 100% width on images was enough lol. It wasn't. Whole hero was trash on my phone.

kewldad I get the traffic point but ngl if the page is broken on mobile in a mobile niche, that's not polish, that's the product.

da_real_mvp

New Member
Messages
69
Reaction score
0
Location
Atlanta, GA

FrostyBear 768 is the wrong mental model and it's the thing that actually bites people. Breakpoints aren't device sizes, they're wherever YOUR content falls apart. Drag your browser slowly from 1200 down to 320 and watch for the exact pixel where the hero starts looking stupid. That's your breakpoint. For most of these landing pages it lands somewhere around 600-700, not 768.

And your Redmi reading "wider than expected" is device pixel ratio playing tricks. Phone has like 1080 physical pixels but reports ~393 CSS pixels to your page. So the layout you're actually designing for is 360-414 wide. If you're testing in devtools at 768 you're testing a tablet, not your audience. Set it to 390 and leave it there.

On the table, tables genuinely laugh at max-width because they run their own layout algorithm, that's why you've been poking it for two evenings. display: block on the table element is the nuclear option. Kills the table layout completely, cells just stack. Ugly markup, works fine, takes five seconds if you're not precious about it. jen_93's two-div approach is the right way, but try the nuclear version tonight before you commit 40 minutes.

OP still hasn't said how many sections lol. That number is literally the difference between "lose one evening" and "open Fiverr," and we're three replies deep guessing.

You must log in or register to reply here.