In 1899, the Eiffel Tower was 10 years old. Not only did it have lifts, it famously, notoriously had lifts. French futurist artists could hardly be more aware of the concept.
Google comes through for once.
https://www.amusingplanet.com/2020/04/the-elevator-shaft-tha...
tl;dr: Cooper Union's Foundation Building built 1853. Otis demonstrated his invention at the Crystal Palace in 1854, first installed Haughwout Building in 1857
Also freight elevators existed for a long time before but were unsafe for passengers.