If you put a Shield in your left hand, hold right click, and pass through a nether portal, the shield will remain active as long as you keep it in your left hand. You can continue to mine, attack, place blocks, eat, use other items.
In short, you are literally invincible if you are attacked from the front, but you will still take damage if you are attacked outside the scope of the shield.
This bug occurs since 1.9 and probably affects 1.17 snapshots
Environment
Java 1.8.0_51 64bit
Windows 10 Version 20H2
CPU AMD Ryzen 7 3700X
GPU Gigabyte RTX 2070 SUPER GAMING OC
RAM AORUS 2x8GB - 3600MHz - CAS 19
Running Minecraft with no mods, no Optifine, with 2GB RAM
Hey there!
This looks to be a duplicate of MC-86252.