What goals should a person make to cure anxiety ?

I’m in mid20s and I’ve been feeling stuck and confused for about a year or two. Like I’m tired of living in anxiety, fear, lack of confidence and I’m also feeling like I’m not fully aware and conscious. I think because I have nothing going on in life. I’m just ending up feeling confused. I’m feeling unhappy and distressed internally.

Sometimes it feels so normal and easy when someone is around me when I face my fears but when I have to do things on my own. I’m just feeling nervous and anxious therefore I’m not doing the task. How do I even build resilience. How do I fix myself. How do I fix the root cause of my problem.