Changing wallpaper on screen orientation

Hey guys,

I’m a newbie who’s looking for a way to automatically change the wallpaper when the screen orientation changes.
Since getting the Tablet PC package, I realised that my wallpaper looks pretty awful when in portrait mode, that’s why I want to change it. While at it, I also think it’d be pretty cool to have a different wallpaper on the inverted orientations as well.

I’m using EndeavourOS with KDE Plasma version 5.27.7 .