What's the best way to pause the main Camera's rendering with URP ?

I’d like to pause the main camera’s rendering when a menu is opened, because the game is quite performance-intensive. What’s the best way to achieve this ?

I’ve seen people who set Camera.clearFlags to “Nothing” but this doesn’t exists in the Universal RP

Why don’t you just use:

Camera mainCamera;
mainCamera.enabled = false;