Online GDB works by running the code on a server and relaying the standard output to your browser.
So if you want to use a graphics screen, then that will not be forwarded to your browser.
However, you can do character graphics, as it's still characters and will fall on the standard output, like I did here.
If you want to do graphics, maybe look at some graphics engines such as Unity or Unreal Engine.