This weirdness was a result of Beast Boy unwittingly putting on some virtual reality goggles being used by The Light to hypnotize users who had the meta gene and then coerce them into going to a certain location.
The goggles put Beast Boy into a psychic fugue state, leading to that vivid Teen Titans Go! goodness.
SPOILER ALERT for those not watching Young Justice: Outsiders, or those who haven’t caught up yet.