Um CSS für Mobilgeräte anzupassen verwendet responsive Media Querys

Responsive Web Design Media Queries
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript,…
www.w3schools.com
So kannst du zB margin für Mobilgeräte auf 10px und auf Desktops auf 20px setzen.