The Americans with Disabilities Act (ADA) protects the workers from discrimination on the basis of their disability–including mental illnesses like anxiety and depression. Some workplaces ensure inclusivity without any discrimination, so you can not get fired for anxiety in that case.