This infinite XP glitch is no longer available in Minecraft Bedrock Edition. Mojang patched (fixed) the bug in version 1.19.60, which was released on February 7, 2023.
The furnace XP glitch existed in Bedrock Edition versions 1.19.41, 1.19.50, and 1.19.51.
Whether you're able to use this glitch might depend on your platform. I've confirmed that it works on PC, and others have reported that it works on Xbox. Reports about mobile are mixed. See the comments below for feedback from others regarding mobile. Note that Bedrock Edition is sometimes called MCPE (Minecraft Pocket Edition) or Minecraft PE, but these refer to a single edition of the game, which is the non-Java edition.
This video is not an endorsement of using XP glitches in all scenarios. But if you're frustrated by the difficulty of obtaining XP in your single-player world, I don't see any harm in using an exploit such as this one.
![](https://i.ytimg.com/vi/WBVgHPd8z58/maxresdefault.jpg)