This is where Lockdown Mode(opens in new tab) comes in, which limits certain features and settings to bolster your protection. Released as part of iOS 16 and macOS Ventura, switching this on is the last resort to keep your data from attackers, where apps, features and websites are restricted, keeping your information secure.
We should stress, however, that its rare that this extreme case will occur to you - but its a feature thats great to have for that just in case scenario.