Vistaril is an antihistamine medication, which is also used to treat anxiety symptoms. Xanax is a controlled substance belonging to the benzodiazepine class, used to treat anxiety and panic disorders. Both Vistaril and Xanax are used for short-term anxiety problems But Vistaril is not a controlled substance.