https://www.sageadvice.eu/immunity-only-to-damage/
If a creature is immune to cold and is hit by "Ray of Frost" do they suffer the 10-foot speed penalty?