Tried to open my Laravel Herd .test site on my iPhone without a tunnel: dnsmasq on the Mac, the iPhone's DNS pointed at it.
The page didn't load at all.
A browser's device mode only resizes the window. The page still runs on desktop Chrome, not on Safari's engine.
Good short read on what that hides, and how to test before handover (German, link opens in English):
https://t.co/RMlKRokoWr
@globalainomad Agreed. First two things that break for me on a real iPhone: a 100vh section under the Safari toolbar, and inputs that zoom when you tap them.
@Kishan_Devani_ Good for checking layout at different widths. I still finish on a real iPhone and iPad though, cuz no viewport shows Safari's toolbar, the keyboard, or real touch
@ale_sannazzaro iPhone and iPad, the real ones on my desk. A preset gets me the width. What I still check by hand: Safari's toolbar, the keyboard, and hover menus on the iPad.
For a secured Laravel Herd site, Vite on a phone needs one line in the Laravel Vite plugin config:
detectTls: 'yoursite.test'
Without it, my iPhone showed the page without styles and hot reload didn't work.
iPad Safari tells your site it's a Mac. If you detect devices by user agent, iPad users get the desktop version, but with fingers instead of a mouse.
Worth a check on a real iPad: every menu that opens on hover.
Chrome's device mode is still Chrome in a small window. An iPhone runs WebKit.
Check two things on a real iPhone: does a 100vh section slip under the toolbar, and does the page zoom when you tap a form field?
Local HTTPS on a phone is the hard part. Your iPhone doesn't trust your Mac's dev certificate until you install it and switch on trust by hand. Until then: warnings, or the page doesn't load.