On One UI 2.1 and newer devices, you can go to Settings > Lock Screen > Wallpaper Services. Then scroll down and click on 'Dynamic Lock Screen'. Now switch on 'Auto Update'. You can follow the tutorial above to see how that might work on your device.