Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Ryan Canty
PLUS
Ryan Canty
Courses Plus Student 5,665 Points

My portfolio looks way different on my iPhone.

So, I designed my website with the mobile first approach using safari's developer tools to make sure my site looked good on iPhone SE, 6s, and 6s Plus. But when I uploaded my site to GoDaddy.com it looks completely different. Its almost like its displaying the desktop version instead of the iPhone version. Is there something I'm supposed to do to tell the browser to handle it differently on mobile browsers or something? For reference here (https://imgur.com/a/7g7Gd) is what it looks like with safari's developer tools on my computer, and here (https://imgur.com/a/JHJdQ) is what it looks like on my iPhone 6s Plus. Any help is appreciated!

1 Answer

andren
andren
28,558 Points

My first guess would be that it is due to the lack of a viewport meta tag on your page. Try adding this code within the head section of the page:

 <meta name="viewport" content="width=device-width, initial-scale=1">

You can learn more about the viewport meta tag on MDN or by searching on Google, there are quite a few articles written about it.