Honestly, and I can only speak for the IT field, but switching companies typically is the only way to substantially increase your wage.
After about ~5 years of floating at an Entry level wage, I took a nightshift role at my company to get a promotion. It was around 30% bump, which at the time, was huge for me and my family.
After being miserable for 6 months (i'm not cut out for night shift), I found another role which was around 20% more.
After a year and change there, I was recruited away and got nearly a 50% bump.
So my switching jobs 2x within 18 months after receiving a significant raise, I was making more than double than I was before my promotion.
Sure, that makes me a job hopper. But, it was the right move for me both professionally and financially.
Loyalty to companies is almost never worth it. Unless the company has been loyal to you and will continue to be (i.e. has invested in your professional development and given you proper promotions and raises as you've grown and gotten experience). Unfortunately most companies see employees as extremely transactional. They hire the minimum they can, work them as hard as they can for as little as they can. And the minute they can get the the same work for a little cheaper, they'll dump the employees without second thought to tenure. Because of that, this is how employees should see employers, as a mutually beneficial relationship. You provide labor, they provide capital in exchange. If you have an opportunity for a better salary and role for you and your family, take it. I've been on countless interviews during my time, and only once has someone called me a "job hopper" and asked why I wouldn't leave them in 2 years. It pissed me off (as it wasn't true, I had just taken an awful job to avoid moving in with my parents because I had been laid off and needed to find something better) and I basically ripped into him and pointed out why I left each job I had. I didn't get the role, and honestly it was the best thing for me as my next job set me up for the success i'm having today.