The service manual does mention support for M2 SATA3 SSD such as the M2 Samsung 860 Evo or similar. However, before buying the drive you need to check if the slot is present on the motherboard as sometimes in notebooks that did not come with M2 SSD the physical slot is missing.
On page 45 of service manual you can see the steps to remove the bottom cover and take a look.
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".