I'm doing this with Immich as the photo storage software, MagicMirror OS on a raspberry pi, and the MMM-ImmichSlideShow module to show the pictures on an old computer monitor.
If you're new to self hosting stuff, this will be sort of difficult to get set up. If you're comfortable with the command line, config files, docker, etc, then it's worth the effort.
Might be better to install it through Obtanium by adding this link https://github.com/ReVanced/revanced-manager