Yes, you can be denied of your dream job due to your mental illness. It depends solely on department policies on accepting people with a prior mental condition.
In some cases, they won't ask you nor attempt to find out if you do. It's probably best to keep quiet unless they ask you about it.
In some cases, they won't ask you nor attempt to find out if you do. It's probably best to keep quiet unless they ask you about it.