The two major concerns are 1) the length of the card and 2) the wattage required to run it properly. You can follow the instructions in the article on measuring the space where the card will be installed. The PCIe slot on the motherboard is PCI Express 3.0 x16. This will work with the card. Each manufacturer has their own specifications for the card, however. You can check to see what they offer.
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".