Are you wanting to upgrade to the GTX 1050 is why you are asking?
Incidentally, your ax039 specs says it came with a 120W power adapter, but it was really supposed to have a 150w supply. Just in case you were having poor performance gaming and FPS drops.
Problem is, which OMEN 15-ax039 are you referring to? There is the OMEN 15-ax039nr and the OMEN 15-ax039tx.
If the NR version, it has a 4k screen and wont work with the ax205na because it came with a FHD 1920x1080 screen. The pin out for the display will be different.
Otherwise... technically you should be able to swap as the two chassis are exactly the same. If you google images of the two motherboards, you will see everything lines up the same including the heat-sink and peripheral connectors. Both use the same 150w Power Adapter. But this is just my opinion. I have not actually done it.
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".