Should i code first Mobile or desktop?

Should i start coding frist for mobile and then put a @media or something for desktop, or should i do first desktop and then mobile?( And explain why please)
Thank you.

I more frequently hear suggestions to program for mobile first, then add media queries for larger screens. This obviously depends on the intended use of our site/application, however. I personally find it easier to do mobile first. Here is a short Medium article with some practice advice on the matter:

1 Like