What's the difference between desktop and embedded? I reverse-engineered some medical device. It houses tiny CPU and 3" touch screen. Inside it runs Linux with X Window, Chromium, Electron and software written with JS. It's definitely embedded device, it's tiny, works from accumulator, hand-held. But its software stack is not any different from desktop.
Traditionally, the main difference was a full-featured MMU which allows virtual address spaces.
But these days, you have advanced 600MHz microcontrollers with simple GPUs, and full-featured CPUs which get used as an embedded platform. You can even build a Linux kernel for no-MMU platforms.