Can margins and padding be different for different screen sizes?

I need some paragraphs to have different padding depending on screen size, but it doesn’t seem to work for me. I remember webflow having this feature, is it the same here?

Hi, have you tried like this?

Yes, it works like this in the builder, but not after it’s published. At least for me.

[edit] Seems to be working fine, my layout was messed up.