Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,538 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.