Lying on your CV is probably fraud and is almost always a very bad idea.
Lying about mental health only contributes to the stigma and discrimination that some people experience. It also removes some of the legal protections you have[1]. It's probably better to be honest - "I had time off for a common illness. I got treatment and I now have some advanced techniques and some protective measures, although noone expects any recurrance of the illness.
Then move the topic onto what good things this company does and why you're applying.
[1] in some jurisdictions you have to disclose your illness to get disability discrimination protections. Not all places.
You're right, lying is a bad idea, but phrasing something bad in a way that sounds a little better is sometimes necessary, especially with something that you know is behind you and won't affect your future work. It's not fair, and it doesn't help with the work stress, but employers do disqualify a candidate for this.
Lying about mental health only contributes to the stigma and discrimination that some people experience. It also removes some of the legal protections you have[1]. It's probably better to be honest - "I had time off for a common illness. I got treatment and I now have some advanced techniques and some protective measures, although noone expects any recurrance of the illness.
Then move the topic onto what good things this company does and why you're applying.
[1] in some jurisdictions you have to disclose your illness to get disability discrimination protections. Not all places.