An iPhone 12 weighs 164g [1], so, through the magic of the metric system, it needs to displace a minimum of 164ml of water to float.
The iPhone has an external volume of 14.67cm * 7.15cm * 0.74cm = 77.62cm^3 = 77.62ml. So it would need to be about 2x the volume to float.