The Record Details component uses an object's primary compact layout to display fields in the component. You can customize which fields appear in the Record Details component by creating a new compact layout for the object and assigning it as the primary compact layout.