How mentally strong you are depends on the situations you have been through.
So, if you want to be mentally strong, throw yourself into difficult situations. You will be surprised to see your limits.
Human mind reacts differently when it comes to survival. There is no trick.
Your lifestyle decides how mentally strong you are.