The coronavirus pandemic has been associated with worsening mental health among people in the United States and around the world.