Home › Notes › Phone first

Phone first, built on a desktop: how we keep the mobile version from being an afterthought

2026-11-28・Dev notes・Beetle Arena

Beetle Arena is meant to be a phone app. Players pick up their phones on the commute, in a queue or before bed to train a beetle for a bit or fight a match.

But while we build it, we spend every day staring at a big desktop screen. The prototype is a web page first, because that's fastest to change: refresh and you see it. After a while, without noticing, you start to treat "looks right on the desktop" as "done."

💡 We build on a desktop because it's fast, not because the desktop is the standard. Players hold phones. It only counts if it's right on a phone.

A real example: the bars shrank to a sliver

A beetle's stats are shown as bars: the name on the left, the bar in the middle, and a column of numbers on the right. On a desktop, that right column has a fixed width that fits just right, and everything lines up neatly.

On a phone it was a different story. The screen got narrower, but the number column stayed just as wide. It ended up taking nearly a third of the width, leaving only a sliver of bar in the middle. The whole point of a bar is to show at a glance which beetle is stronger. Squeezed like that, you could barely see any difference.

Illustration: at the top, a desktop screen with three rows of stats, long bars, and a fixed-width number column on the right. Below, two phones. On the left, the number column keeps the same width and only a sliver of bar is left, marked with a cross. On the right, the number column is narrower and the bars are long again, marked with a check.
Illustration: a fixed-width column that fits on a desktop squeezes out the bars on a phone. Make that column narrower on phones and the bars come back. (A simplified sketch, not the real screen.)

The fix is simple: on narrow screens, make that column narrower too. The hard part is noticing, because on a desktop everything looks fine.

Four questions we ask every time we change a screen

Since then, we've turned "what happens on a phone?" into four fixed questions that we go through every time we touch a screen:

  1. Is something fixed-width squeezing out something that's meant to stretch? That's the example above. A column that fits on a desktop can take over on a phone. Anything with a fixed width needs a narrower version for phones.
  2. Does anything overflow sideways? If players have to scroll left and right to see everything, the layout is broken.
  3. Can you tap it? A mouse is precise; a finger isn't. Buttons, menus and checkboxes need to be big enough that nobody has to tap three times to hit them.
  4. Is one row trying to hold too much? Six little tags that fit in one row on a desktop can wrap onto two or three rows on a phone, or spill off the screen.

None of these questions are hard. The hard part is remembering to ask them every single time. So we wrote them into the project's rules: whenever we change a screen, we think about narrow screens from the start, not after it's done.

Don't eyeball "it's probably fine"

Even with the four questions written down, things slip through. When people look at a screen, their brains fill in the gaps: close enough, probably fine. So we hand the checking to a machine:

There's one thing we only understood after tripping over it: checking "what's on the screen" can't verify layout.

One kind of check confirms that every element that should be on the screen is there and that the proportions add up. It's fast and genuinely useful. But it never actually lays out the screen. Is the bar there? Yes. Is its width ratio right? Yes. And yet in reality that bar might be squeezed down to almost nothing, or have no height at all, and this check can't see it.

💡 Layout problems can only be measured by a browser that actually did the layout. So any change to how things look or where they sit has to pass the real-browser check.

A few habits while building

What we learned

  1. Where you build isn't where people play. Where you develop is about convenience. Where players play is the standard.
  2. Fixed widths are the most dangerous thing on the screen. They fit nicely on a big screen and grab all the space on a small one.
  3. Turn "remember to check" into "it checks itself." Writing the rules down isn't enough. Having a machine run them every time is what stops things slipping through.
  4. Measure layout in a real browser. Right structure doesn't mean it looks right.

When you play browser games on your phone, what's the screen that tells you instantly "this is the desktop version crammed in"?

Previous post: Three languages, one small team: how our beetle game keeps Chinese, Japanese and English in step

Open it on your phone and play: Beetle Arena (free, right in your browser).