The spacing to sections and rows can be adjusted using the Visual Builder by dragging & dropping the padding:
The Divi Builder also offers the Design tab with the Spacing option being one of them, from which the space can be adjusted in Divi, for Desktop / Mobile / Tablet.
It's enough to open your layouts and adjust the spacing for different devices: