The density difference of sub-Neptunes finally deciphered