I created a village and have got the hero of the village enchant but now that enough villagers and beds are there, they are spawning iron golems. Every iron golem spawned in to the village has been hostile toward me. I have not attacked any villagers or iron golems and got hero of the village while they were spawned and they are still hostile.
Thank you for your report!
We're now tracking this issue as part of MCPE-47012, so this ticket is being resolved and linked as a duplicate.
Unfortunately, defeating raids has no impact on player popularity in Bedrock Edition villages.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki