Please don't refer to the German Navy as Kriegsmarine (KM) in a WWI and before scenario. rather call it Hochseeflotte.
If the only concern is Fleet vs Fleet - its UK any time prior and during WWI.
But UK would have to WIN the war not only at sea.
UK would have to rally all its dominions and India if it stands alone.
First thing to do for UK is to bring a massive army to Canada - as this is the only land border where a land battle is possible. This might lead to an early battle in the NA - the further West it is fought the better will the US navy perform (Fleets quickly lost their "power" when venturing further from homeports)
The Hochseeflotte probably will be confined to the NorthSea and Baltic sea due to the short range of her battle line, so in the Atlantic its US vs UK alone unless fighting near England.
UK might attack the Fillies from India/AUS and NZ...
The earlier the war is fought the lesser will be the impact of a "raider" campaign.
Subs might have no impact in a pre 1910 war.
Deciding factor will be the reaction of other nations...
Japan probably sides with the UK (Anglo Japanese treaty)
A-H with GErmany (will not change the naval balance)
France - Russia - depends how "cordial" the relations to UK are...
Italy - depends on which side France and or AH is
Turkey - won't matter

Spain - after 1898 - might see a chance to get back the colonies from the US...