How to identify an application downloaded from the appStore/googlePlay from a mobile version web-site?

There is a PVA site on nuxt3, it is also available in the appStore/googlePlay. How to determine JS, the client in the downloaded application from the appStore/googlePlay or just with the browser on the phone?

user-agent is given only by the device information.