Pages that haven‘t been adapted to HTML 5 in the last 10 years or so are exceedingly unlikely to do so in year 11.
Plus "ISO-8859-1" is treated as Windows-1252 by browsers, while unicode uses ISO-8859-1 extended with the ISO 6429 control characters for its initial 256 codepoints.
If it decodes successfully as UTF-8 it's probably UTF-8.
And yeah, add some sensible limits to this logic of course. Most web pages aren't never-ending nor multi-GB of text.