Muhammad Khan, 28, reportedly left the queue at Westminster Hall on Friday night while the Queen lay in state as the live feed was briefly cut. Khan was arrested and appeared at Westminster Magistrates’ Court on Tuesday, charged with two counts under the Public Order Act. Prosecutor Luke Staton said Khan was among an estimated 250,000 people who fled the hall from 5pm on Wednesday until the early hours of Monday after queuing for hours to see the Queen’s coffin. Mr Staton said the accused was seen by police officers, who were present, approaching the coffin. “He walked off the carpet in the direction of the hearse and then grabbed the Royal Standard draped over the coffin with both hands,” he added. The court heard he was quickly apprehended, arrested and interviewed by police. Mr Staton added: “The defendant expressed the idea that the Queen is not dead and that he approached the coffin because he wanted to check for himself. “He said that, before the state funeral, he planned to go to the funeral. “He was planning to write to the royal family and if they didn’t answer, he was planning to go to Windsor Castle, Buckingham Palace and Balmoral to try and talk to the Queen.” The court heard Khan said if he didn’t make it: “I would have to trespass to try and make contact.” And when asked how many times he would try, he replied: “As long as I live.” District Judge Michael Snow questioned Hahn, who was not represented by a lawyer after doctors had deemed him unfit to stand trial. Read more: King Charles flies to Scotland day after Queen’s funeral Holly Willoughby and Philip Schofield express anger at queue The court heard he was delusional and the judge told him: “When you were at Westminster you didn’t accept that the Queen was dead and that’s why you went to the coffin to satisfy yourself that she was.” He added: “He’s still delusional and thinks the Queen isn’t dead, he thinks King Charles has something to do with it and he might go to Windsor Castle to pay his respects, but also because he thinks she’s still alive ». Khan spoke to confirm his name, date of birth and that he was staying at a friend’s address in Wood Green, north London, during the hearing. The judge granted him bail on condition he remains in an east London mental health hospital until his next appearance at the same court on October 18. Last night, the Queen was laid to rest at the King George VI Memorial at Windsor Castle.