Or you can just take Ashwagandha which will increase your stress resilience and give you this stoic idgaf type of feelingI spent hours thinking about this exact question. I think mental state affects the physical state more than vice versa.
Messed up physical health definitely can give you anxiety and depression, but I'm convinced that more often it is the opposite.
Modern lifestyle is designed to be as stressful as possible. Ultimately, if you want to heal, you need to remove as much of those stressors as you can.