Mainboard
Mainboard
You're looking to upgrade from your ASUS PRIME H310M-K to a Gigabyte H310M S2P. The components you mentioned should work with the Gigabyte MB, as they match the socket type and specifications.
The issue with your current mobile device seems similar to problems with older motherboards, both falling within the same price range. Upgrading the CPU to a 9700 might be a better solution.
Consider swapping to a more capable board if you want the same CPU. Upgrading the power supply would help, but the i7 might not fully utilize turbo boost. A B350 or Z370 with solid VRM works well, and adding faster RAM could improve performance further. An i7-8700 would see only minor gains, but a better board opens the door for an i9.