Official YT doesn't offer such a feature, but with YouTube Revaced you can play YT in the background on the tablet version.