If it’s showing properly while your on visual builder and reverts back when you exit, perhaps it’s a caching issue. Have you tried clearing cache on your browser or using incognito instead when viewing the page? You may also want to temporarily disable css minification as well as static css file generation within the Divi Settings.
I would rather troubleshoot this rather than look for another way of doing it, since it is proven to work. There might just be something that is amiss.