There's a video whose subtitles are dynamically written inside a div element, an instance of the element:
<div class="jw-text-track-cue jw-reset" style="position: relative;
padding-left: 0px; padding-right: 0px; left: 0px; top: 0px; bottom:
0px; display: inline; white-space: pre; writing-mode: horizontal-tb;
unicode-bidi: plaintext;">>> What, what are the teams?</div>
How do I translate it everytime it changes and write the result each time in another div element (or anywhere)? Is there a browser extension that can do this?