This is the old one and how the wires were, the neutral was on the bottom. It doesn't look like there is any indication of hot or neutral.
I don’t believe the element cares about polarity, just hook it up. It’s isolated from ground and just acts as a resistor.
Source: Replacing water heater element. Does it matter which wire goes where?