The short answer is that deserts generally have low biodiversity compared with tropical rainforests, temperate forests, wetlands, or coral reefs, but the comparison depends heavily on which desert, which taxonomic group, and which spatial scale you mean, because some deserts are unexpectedly rich in species and many are rich in endemism (species found nowhere else).
The question bundles several distinct ideas: total species count, species density per area, ecological uniqueness, and abundance of individuals. Deserts tend to rank low on the first two and can rank surprisingly high on the second two. Untangling those measures explains most of the apparent contradiction in the common claim that "deserts are biodiversity hotspots."
Why the default answer is "low"
A desert is defined primarily by water scarcity, not by temperature or sand. Arid regions receive so little precipitation—and lose so much to evaporation—that plant growth is limited and productivity is low. Low primary productivity constrains the food and water available to everything above plants in the food web, which is why deserts support relatively few species overall and low biomass per unit area.
Compare a square kilometer of Amazonian lowland forest, which can hold hundreds of tree species and enormous animal diversity, with a square kilometer of the Sahara's interior, which may support only a handful of plant species and a thin scattering of animals. Across broad taxonomic groups—plants, amphibians, freshwater fish, breeding birds—deserts consistently sit near the low end of the diversity gradient, and amphibians in particular are scarce because they depend on water for reproduction.
Where "low" becomes misleading: endemism and uniqueness
Low total diversity does not mean low conservation value. Many deserts harbor species adapted to conditions found nowhere else, and those species often have small ranges. The Succulent Karoo of southern Africa and the California Floristic Province are frequently cited as biodiversity hotspots precisely because of extraordinary plant endemism, even though their overall species richness is modest next to a rainforest. The Namib supports beetles and lizards specialized for fog-water harvesting; the Sonoran and Chihuahuan deserts hold distinctive cacti, yuccas, and the animals that pollinate them.
So the accurate framing is: deserts are typically species-poor in absolute terms but can be disproportionately rich in specialized and endemic species. Calling a desert a "biodiversity hotspot" refers to irreplaceability and threat, not to raw species counts.
The scale problem
Species–area relationships complicate any single verdict. A vast desert like the Sahara covers an enormous area and, summed across its whole extent, contains more species than a tiny desert patch. A small, isolated desert may hold very few species simply because it is small and isolated. Richness also varies sharply within a desert: oases, riparian corridors, rocky outcrops, and fog-affected coastal strips can be locally diverse, while erg (sand-sea) interiors are extremely depauperate.
Regional counterexamples
Not all deserts are equally sparse. Australia's arid zone supports a remarkable radiation of lizards, and the continent's dry interior is a center of reptile diversity. The Great Sandy Desert and other Australian deserts host many mammal and reptile species adapted to aridity. Parts of the Atacama are among the driest places on Earth and support extremely few species, while the adjacent fog-fed lomas communities are comparatively lush. The contrast shows that "desert" spans a gradient from near-sterile hyperarid cores to semi-arid margins that intergrade with grasslands and shrublands and can be quite diverse.
What "biodiversity" is being measured
If biodiversity means species richness, deserts usually score low. If it means functional diversity—the range of ecological strategies—deserts can be surprisingly varied: nocturnal, fossorial, estivating, fog-harvesting, and drought-deciduous strategies are all represented. If it means genetic diversity within widespread species, many desert organisms maintain substantial variation across fragmented ranges. And if it means abundance of individuals, deserts are low, though boom-and-bust dynamics after rain can produce brief explosions of activity and reproduction.
The bottom line
The honest answer is that deserts are characteristically low in overall biodiversity but high in specialization and often in endemism, with wide variation among deserts and across taxonomic groups. The common misconception is treating "desert" as a single category; the common overcorrection is assuming any desert labeled a hotspot is species-rich. Both miss the distinction between raw richness and irreplaceable uniqueness.