Scooby-Doo and Guess Who? (2019) : A Run Cycle Through Time!

Malcolm McDowell has made time travel possible, so he takes the gang along into the past, but an accident causes them to go into a nightmare future.