Do you have a WiFi router to connect the phone and printer?
Which operating system is installed on the phone?
Refer this HP document for the steps to install and use HP smart app to print:- Click here
I hope that helps.
To thank me for my efforts to help you, please mark my post as an accepted solution so that it benefits several others.
Sandytechy20 I am an HP Employee
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".