My bearded dragon is about 1 year and 6 months and is going insane, which can be seen in this video: (https://www.youtube.com/watch?v=tV6ocyajxH0) All the mess in the tank is from yesterday and today.
That looks like "glass dancing". They sometimes do this when the temps in the enclosure are too high/incorrect. It is possible that your beardie is hot in the tank and wishes to get out because of that. Remember, hot side temps shouldn't exceed 110-115f, and the ambient temp shouldn't exceed about 85f.
Also, keep an eye on his breathing. It seems a bit heavy (could be a respiratory infection), or it's possible that he's just agitated/it has something to do with the "glass dancing".