Developing mental strength in the face of self-doubt or setbacks is a process. The best way to do this is to put yourself in uncomfortable situations, face those challenges head on, and focus on the positive outcomes. Also, make sure to have a support system of people who can help you stay motivated and remind you of your successes.
Mental strength is a combination of experiences and thoughts that allows one to pursue and enjoy life while being there for loved ones.