I was under the assumption that https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Manifest/Reference/scope does the job. Does it not?
Also, Thomas Steiner :chrome: (npub1ctt…3egd) is my goto fixer for all my PWA needs, so perhaps he knows the magic line of code you need here.