It is not specifically illegal. But, if (if!) a police officer sees it, it could be prosecuted as careless driving, driving without due care and attention or dangerous driving, depending on its exact context or how necessary it was, as can any other non-legislative part of the Highway Code...