The TfL app still shows trains between the two terminal today but I would have thought absolute worst case get a cab, won’t be cheap of course. Are you returning to T5 or T3?
Heathrow Express goes T5 to T2/3 before going onward to Paddington. Free but you need to beep on the terminals with an oystercard or contactless bank card to get through the barriers.
Heathrow Express is usually the quickest way to chance between terminals anyway. It's free as well, just need to get a ticket from the machine for it to let you in.