Why the subtitles disappear
A browser's picture-in-picture window shows one thing: the video itself. Anything drawn on the page around or on top of the video stays behind in the tab.
Some sites put their captions inside the video as a text track, and those can travel with it. Many streaming players don't. They draw each subtitle line as part of the page, positioned over the picture, so they can style it and move it around. That looks identical while you watch in the tab, but the moment the video floats, the line is left on a page you are no longer looking at.
Nothing is broken, and turning subtitles off and on again won't bring them back. The window simply has no subtitles to show.
What to try first
Look for the player's own mini player. Some players have a small in-page player, separate from the browser's picture-in-picture button. It is still part of the page, so its subtitles stay. It won't float over other apps, though.
See if the site floats more than the video. Chromium browsers support a newer kind of picture-in-picture where a site can float a whole piece of its page, subtitles included. Only a few players use it, but if yours offers a pop-out with its own controls, try that first.
Give the tab its own small window. Drag the tab out, shrink the window, and keep it beside your work. You keep the subtitles, but it won't stay on top when you click into another app.
What Undertitle does
Undertitle is a small Mac app with a browser extension. When a video from a supported site goes into picture-in-picture, the extension reads the subtitle line the player is showing and hands it to the app over a local connection. The app lays it on a Liquid Glass strip at the bottom of the floating window, and follows the window as you move it.
It mirrors the player, so the line is in whatever language you picked, and nothing shows if the player's subtitles are off. It works in Chrome, Dia, Arc, Brave and Edge on macOS 26, and nothing leaves your Mac.
Undertitle isn't out yet. It is coming to the Mac App Store; leave your email below and you'll hear once, on the day it ships.
What about Safari?
Safari draws its picture-in-picture window differently from Chromium browsers, so Undertitle doesn't cover it yet. It may come later.