Instagram and TikTok are the apps that demand the most from the processor because they're constantly decoding video, updating feeds in real time, and running algorithms. That generates natural heat, but two weeks of overheating on a one-year-old iPhone is something worth checking carefully.
What most people don't mention is that the problem could be in the combo of both apps together if you have background refresh notifications enabled on both simultaneously. That makes your phone never really rest. Before doing anything else, go to Settings > General > Background App Refresh and turn it off for Instagram and TikTok. Also check Settings > Privacy > Location and see if those apps have access to your location all the time (spoiler: they don't need it). I've seen several times where customers fixed the issue just by changing those permissions, because GPS drains battery and generates heat.
If the heat persists after that, it could be something deeper with software or the battery starting to fail. In that case, the best thing is to check your battery health (Settings > Battery > Battery Health and Capacity) and if you see it's below 85% or there are weird messages, Apple should replace it at no cost if it's still under warranty. But first try clearing the app cache and reduce those unnecessary permissions, because in most cases that stops the overheating.