The first thing to do is to change how your mind views you. Seems silly but try, standing in front of the mirror. Looking yourself in the eyes and saying positive things. For example ‘I am hard working’, ‘I am strong willed’, ‘I am honest’, focus on your strengths, and even if you feel you have non - fake it. The human mind is remarkably malleable.
Another thing you can do is to say alxamdulilah and show gratitude for the things in your life.
Last but most crucial. Remember, you are a creation of the All Mighty, and this world is nothing but an illusion. Don’t take it too seriously. Everyone has their flaws, everyone has their strength, you are no less, and no more. Don’t worry about comparing yourself, keep Allah in your heart and focus on yourself.