On macOS, there's also an app to achieve that, called "Cookie": https://apps.apple.com/nl/app/cookie/id1473091386?l=en&mt=12
On iOS however, Apple's walled garden...