He only described himself as a socialist to other socialists. In front of other nationalists, he called himself a nationalist.
His party was called the "Nationalist Socialist" party. When he addressed nationalists, he would capitalize the N and call it the "Nationalist social" party like we're all just a bunch of nationalists socializing. But, when he spoke to socialists, he would capitalize the S and call it the "national Socialist" party.
Hitler didn't care about nationalism or socialism. He only cared about saying whatever he thought he needed to say to obtain as much power as possible.
Yeah, but he only emphasized the "Socialist" part of the name in front of socialists. In front of nationalists, he called it the "Nationalist social" party like we're all just socializing with each other.
The truth is, Hitler supported the ideology of whoever he was addressing. He didn't care about implementing any specific system, as long as he had absolute power over it.