L2 visa expires before travelling to India through London. Will Transit Visa help to pass through London?

My wife has L2 visa and will be expired before travelling to India through London. Will Transit Visa help to pass through London or is there a different process? Please let me know.