The Nazis literally did the first mass privatization of public services and dismantled social services in germany when they took power, I wouldn't say they had some socialist elements.
Even the elements they brought in, that people normally call socialist, but are just social-democrat creations, was because of the appeasement for the middle class, not the lower class.
Itally did it too in the 20s, here's a source for the german part: https://onlinelibrary.wiley.com/doi/abs/10.1111/j.1468-0289.2009.00473.x .