It’s how most of “responsive design using CSS” tutorial teaches you.
Normally I would agree, but for some reason, the width threshold for going from desktop -> mobile is really wide (1280px) which could genuinely be larger than some laptop screens depending on zoom or scaling.