I understand that the Presario 23-b320 all in one shuts down
Many times a laptop overheating is directly related to the cooling of the processor. The main culprit is the fan. The fan sucks in air from the bottom and blows it out the side. It will also suck in hair, dust, and other debris. That stuff often gets trapped by the heat sink and over time builds up in a layer which chokes off the cool air going to the processor making the fan work harder.
What I recommend is getting some canned air and blowing out the vents in the side and bottom of the laptop. If after doing this you still have problems with over-heating, and your laptop is in warranty, you can take your laptop to a HP Authorized Service Center and ask them to clean the fan and heatsink. You can check your warranty here:
If it is out of warranty, consider searching for the maintenance manual for your specific model, in the manual there are schematics for taking apart the laptop. Cleaning the fan is much easier that removing a motherboard, so don't feel to intimidated by the idea. Also you can remove the heatsink and then remove the thermal grease and apply a new layer which also helps alleviate heat related issues.
Keep us posted,
If you would like to thank us for our efforts to help you,
Give us a virtual high-five by clicking the 'Thumbs Up' icon below, followed by clicking on the "Accept as solution" on this post,
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".