Quite a few countries now let you file your customs declaration digitally before landing, either through an official app or a web form, and some have merged it with the arrival or immigration card. Where this exists, you typically fill it in within a set window before arrival and receive a QR code to show or scan at the airport.
That said, it's far from universal. Some countries are fully digital, some accept both paper and electronic, and others still hand out paper forms on the plane. Even where an app exists, the physical red and green channels usually still operate, and a digital declaration doesn't exempt you from inspection.
Check the official customs or immigration website of your destination a week or two before travel, since these systems change often. Only use the government's own app or site, as third-party lookalike sites sometimes charge for what is free officially.