When measuring the volume flow, the density has no effect. If measuring the mass flow, it has something to do with the density.
Generally, an electromagnetic flowmeter is a flowmeter that measures the flow rate. The density of different liquids is different.
This means to accurately measure the mass flow of different liquid flow meters.
It is the volume of the flow volume*density=mass
This can accurately measure the mass flow of different media.