Preventing hyperthermia involves avoiding overdressing the newborn and maintaining an appropriate ambient temperature. For treatment, immediate steps include removing excess clothing, using fans or cool cloths, and administering fluids. In severe cases, healthcare providers may use more aggressive cooling techniques under medical supervision.