In previous versions of the game, when trees check for sufficient air space above them to grow (both with bonemeal or randomtick-based), they would ignore both dirt blocks and logs and consider them as air for generation purposes. However, in current versions, dirt blocks are no longer ignored by tree growth. Considering that this change was not documented in the change notes, this is likely a bug.
The attached image below should hopefully clarify the issue if I have not been clear - none of the saplings in the image will grow.
Checked with single jungle, spruce, birch and oak in 1.19 and 1.19.1rc2.
Although the scope of MC-15224 was changed recently, its previous title was "Saplings can grow with dirt above," which was fixed in 1.16 Pre-release 3. This leads me to believe that this is working as intended, but I'll leave it up to the developers to decide.