I did change the page ID and double checked it and they are both using the same version of ACF. I can’t figure why this would happen. I know there is another plugin that will do this but this is working on the dev site and I’d rather get this working at this point.
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?