I don't know if this is exactly what you want, but if you openOpen Settings, then click on Safari (for iOS 18 it isor Apps, then > Safari since iOS 18), then scroll down and click on Advanced, then click on > Website Data you will get. This shows a list of websites that have stored data. You can clickClick Edit, then remove the data from just the sites that you want to remove stored data from your desired sites.
This will clear the cookies and cache for the selected domain. (can notNote: you cannot select individual subdomains, that is yousubdomains—you can select fooexample.com, but not barsub.fooexample.com).)