The primary treatment for hypernatremia is to address the underlying cause and restore fluid balance. This may involve the gradual administration of IV fluids, monitoring of serum sodium levels, and managing any underlying conditions. It is crucial to avoid rapid correction, which can lead to cerebral edema.