How do I make the margins?

we want to add space and margins to our theme. We also need the space to be responsive to the different break points of tablet and mobile. With this additional code, it needs to be translate to the updated versions of the theme updates, will this be an issue?