That setting is in your phone, something along the lines “open YouTube link in app”
The tag only has a link (a bunch of characters/text file), how the reader (phone) react is not stored on the chip.
What phone are you using?
When you open a link (from a website), doe it open in the app or the browser?