Company-managed (Classic) Spaces (Projects)
To show dynamic custom fields on the work item view in company-managed Jira spaces, simply add them to the respective screen of your space and work item type:
Team-managed (Next-gen) Spaces (Projects)
For team-manged Jira spaces, you can simply add dynamic fields by adding them to your work item types: