How is it compatible with the third party theme?

How is it compatible with the third party theme?

You need to copy the following template into your third-party theme and make it compatible for your theme.
view/frontend/templates/product/view/details.phtml