When holding a torch in hand, fences try to “connect" to the player.
We are playing on a bedrock realm, on an xbox series s on the latest minecraft version.
There are minimal Marketplace mods installed,
Essentials
FantasyCraft 1.5
AnotherFurnitureAddon
You load an addon with dynamic lighting, it places a light block at your position, and this block connects to the fence.