Follow the below steps to clear your browsing history in Apple Safari on Mac:
• Launch Safari, go to History > Clear History, select the timeframe, and click Clear History.
To know how to clear browsing data on Chrome and Firefox, read this blog.