It doesn't matter what kind of motherboard and CPU you upgrade to, as long as the CPU and motherboard are compatible w/ each other (same cpu mount). Worst case scenario, you'll have to do a BIOS update if you get an older mobo with a newer CPU, which isn't too hard:
https://www.wikihow.com/Update-Your-Computer%27s-BIOS
Your motherboard manufacturer will likely have instructions on updating BIOS as well.
Also, be sure to go into BIOS when you first boot to make sure the boot sequence is correct.
Make sure your ram DDR is compatible w/ the new mobo, and that you have enough power on your PSU to support your system.