Yes, a person having 40% mental illness certified as PWD can get reservation in JEE Main and JEE Advanced. Even if the condition is temporary, as long as the disability certificate is valid and issued by an authorized medical board, the student can claim benefits under the PwD category. The certificate should be uploaded during the application process. This reservation allows relaxed eligibility and seat allotment under the PwD quota. So if all documents are proper, the student will be considered eligible for reservation in both exams.