Your code looks fine, so the issue must be that the ‘live’ page has a different post ID.
Can you triple check that 2540 is the correct ID on the live site?
Also, have you got data saved on that page on the live site? Did you import it? Did you manually enter it? Can you try to save it manually?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users