Hi, @DB365-3161 ,
First I want to confirm about the DispForm.aspx page. Would you like to provide a screenshot of it ? As in modern experience we actually don't have a DispForm.aspx.
For the behavior, I can reproduce in my end. As long as the JSON formatting are referring to the column hidden (like using a if condition with that column), the JSON will not work when you open the item. And the column field is formatted correctly in the Details/Properties panel.
AFAIK, this is a by-design behavior. For now I am not sure if there is a workaround for it. If this action really bothers you, have a service request about it and see if the support team have an option for it.
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.