How you perceive and react to the world around you is based on your mindset.

A positive, growth-oriented mindset allows you to see opportunities where others see obstacles and remain resilient in the face of adversity. Conversely, a fixed or negative mindset can limit your potential, making situations seem harder than they need to be.
The good news is that you can reset your mindset. However, it isn’t always easy. It takes time and effort.
P.S. If you search this site, you’ll find quite a few posts on developing a positive mindset.