I am learning that it is important to code one’s sites to read mobile first and a lot of people are doing this.
I am wondering, do very many designers just use their phones to code altogether instead of a laptop or desktop? What would be the pros and cons of both approaches in comparison?
I never heard of anyone coding on a phone, nor do I think its worth the trouble.
Coding with an on screen keyboard is a nightmare. Imagine trying to type a <div> tag, it would require a few extra taps just to get the greater-than/less-than signs.
The tooling just isn’t there. On a computer you can get VSCode, nodejs, most browsers, and can use DevTools. From the browser DevTools you can change the view-port so a site acts like your viewing it on a mobile device. This is the approach most developers take, as there are basically no drawbacks
It is possible, but you will have to jump through a lot of hoops and you don’t get much. Your much better off "getting the phone on your computer** via browser dev-tools, or emulators.