One thing that celebrities are unable to avoid when they're constantly under the spotlight is public scrutiny. When a show gets as big as Game of Thrones, that light shines even brighter, and Sophie Turner says she's witnessed that firsthand.

In an interview with Dr. Phil on the podcast Phil in the Blanks, Turner said she never suffered from depression as a child but when she hit puberty, things got really bad, pinpointing the exact reason she began to suffer.

RELATED: Sansa Is Playing the Game of Thrones for Keeps in Season 8

As her friends were heading off to college and moving away, Turner said she was hard at work on Game of Thrones. However, while she loved working on the show, it was the backlash from fans on social media that started to darken her life.

"I think, when I started to hit puberty and really puberty, though, at like 17," she said. "And my metabolism was like slowing down massively, and I was gaining weight. And then there was the social media scrutiny and everything, and that was when it kind of hit me.”

According to Turner, there were a lot of people online who were insulting her, calling her overweight and saying her acting was "wooden," causing her to suffer from self-doubt. However, she also said she was able to turn things around.

Turner sought help with her depression and was able to regain control of her life, and while she thought about suicide at points of her life, she never believed it would get that far. She now sees a therapist and is on medication, while also avoiding trolls on social media. She also points out her fiancé Joe Jonas as someone who has helped her overcome her mental health issues.

"When someone tells you they love you every day, it makes you really think about why that is, and I think it makes you love yourself a little bit more," she said.

In addition to Game of Thrones, Turner is set to star in the upcoming X-Men film Dark Phoenix, which hits theaters June 7.

RELATED: Game of Thrones: Kit Harington Responds in Kind to Harsh Reviews

Airing Sundays at 9 p.m. ET on HBO, Game of Thrones stars Peter Dinklage as Tyrion Lannister, Nikolaj Coster-Waldau as Jaime Lannister, Lena Headey as Cersei Lannister, Emilia Clarke as Daenerys Targaryen, Sophie Turner as Sansa Stark, Maisie Williams as Arya Stark and Kit Harington as Jon Snow.

(via The Wrap)