So i've been told that during ww2 Shinto beliefs played a big role in the reasons behind why Japan refused to surrender. Things like Hirohito becoming an actual god in the eyes of japanese soldiers and how they used temples of shinto as training camps and propaganda.
But how did the actual soldiers see that? Was it a common belief that Hirohito was an actual god and the Yokai were helping them in the war? Did they think Hirohito was invencible?
I'm interested to see your specific question doesn't seem to have come up before. It was partially covered by /u/ParkSungJun, who answered How was the ideology of Imperial Japan so compelling? by explaining that kamikaze pilots generally did not believe anything related to Shinto, religion, or the emperor. He didn't give a citation, but Emiko Ohnuki-Tierney's book Kamikaze Diaries: Reflections of Japanese Student Soldiers (2007) gives a raw and scintillating look into what pilots really believed.
More generally, you have merged together several things here.
What exactly is "Shinto" here? Actually this was an open question in 1945, Shinto being a very vague term. Japan would have it that Shinto was just a non-religious style of venerating famous men and women that even Christians could participate in. America disagreed, and in 1947 they declared Shinto a religion. The Emperor's claim to divine authorization was grounded in ancient history books; after 1947, this history was declared mythology associated with the newly defined religion of Shinto.