Make a PWA with the given template change according to your need
https://brajo280603.github.io/Template_for_PWA/
go through the web.dev page mentioned above
open chrome devtools (f12), go to the Lighthouse tab, check the Progress Web App category and click "Analyse Page Load".
After the test completes , make sure the installable category lights up green to make the PWA installable.
To make your PWA more optimised for devices make sure the PWA Optimised category is also green;