It's hard. Britain's foreign policy in the 1700s to WW1 was based on maintaining a balance of power on the Continent, and keeping one power or solid bloc of powers from gaining complete hegemony. Whichever side was weaker, Britain would join to maintain a balance. If Napoleon is the weaker of two sides, Britain would join him.
The problem is creating such a power without butterflying away Napoleon's rise to power. The two potential candidates for such a power is an Austro-Prussian personal union controlling most of Germany, or a Russia that completely annexes Poland and subdues Austria and Prussia. Neither of those are particularly likely, though.