Create automation for web apps

How can I go about making it so when I open a web app (A website that has been added to Home Screen) it sets the orientation lock toggle or sets the volume to 50%? Since it’s a website it doesn’t show up under the open app automation.