” The event (water entering the phone) has already happened and the outcome is yet unknown; so ‘might have ruined’ is more appropriate. If instead, you were contemplating what would happen (if water entered the phone), you could predict that it ‘would ruin’ it.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.