How to not care people think

How do I get a mindset that doesn't care what people think? I always tell myself if I'm happy then that's the only thing that matters, I shouldn't be getting upset and overthinking what other people think and say about me. But its been getting to me recently. Any advice?