Welcome to HP support community.
Follow the below steps to align the printer:
On the printer control panel, swipe left, and then touch Setup
.
Touch Tools, and then touch Align Cartridges.
An Alignment Page prints.
Follow the instructions on the Alignment Page or printer control panel to align the printheads.
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.
Cheers.