In the case of Safari, I think you need to activate the developer mode in order to have access to the "inspect element" entry in the context menu:
https://developer.apple.com/documentation/safari-developer-tools/enabling-developer-features
https://developer.apple.com/documentation/safari-developer-tools/enabling-developer-features