Install Kiwi Browser (last version for Android 5). It allows you to install desktop extensions, including "Video Background Play Fix," which can partially restore old functionality.
Hardware Constraints: Android 5.0 devices typically run on limited RAM, making the modern, feature-rich YouTube app unusable. Top Workarounds for YouTube on Android 5.0 youtube android 5 version