Complex sentence: When prepared properly, the ingredients remain in two distinct visible layers due to the relative densities of the ingredients.
Split into simpler sentences: When prepared properly, the ingredients remain in two distinct visible layers. The layering is due to the relative densities of the ingredients.