H.G. Wells can't be rewritten as a fantasy.
Oh, I don't know about that.
While The Land Ironclads
might lose some of its essential sobering predictive power, were it transposed into a Middle-earth setting, such a rewrite would be both feasible and straightforward, for example by replacing the war Oliphaunts from Harad with land ironclads.
But moreover, The Time Machine
is a ripe candidate for being transposed into a work more on the fantasy side of the spectrum. Again, the transposition could be accomplished straightforwardly, for example by replacing the machine with a magic artifact, say one discovered in a secret archaeological dig with accompanying hieroglyphs describing the incantations needed to activate it.