Instead of using the built-in social link block for Instagram, you can manually create separate Instagram icons on each page and link them to their respective Instagram profiles. Follow these steps:
Remove the social link block for Instagram from each page.
On each page, add an image or icon that represents Instagram.
Edit the image or icon and add a hyperlink to the corresponding Instagram profile URL.
Repeat the above steps for each page, linking the Instagram icon to the relevant profile.
By manually creating and linking the Instagram icons, you can ensure that each page routes to the correct Instagram profile. This method avoids the issue of hiding and showing specific profiles across different pages, as it provides individual control over each link.
Regarding the code injection you tried, it seems that it didn't produce the desired visual changes. Make sure you are using the correct code and applying it correctly within your website's code structure.