For this, open the Settings app first. Then tap on Messages. Scroll down and tap on Shared with You. Now, turn off the Safari toggle.
Is there a way to remove the shared with you on Safari?
Open a new Safari tab to view your Start Page, then click the customize button in the bottom-right corner of the window and uncheck the box next to Shared with You.