1. Get underneath a 2-block roof (as in one block above your head). Make sure the warden cannot get within one block of you.
2. Alert the warden so it attacks.
3. Observe your safety.
If wardens can counter a 3-block high tower, I expect that they should be able to hit you when you're in a 2-block space.
Thank you for your report!
However, this issue is Invalid.
You have posted a feature request or a suggestion. This site is for bug reports only.
For suggestions, please visit Minecraft Suggestions on Reddit or visit the Feedback website.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki