You need to first understand how WP theme hierarchy works , then only you will be able to find which file you need to define.
Below is the URL to understand how WP theme hierarchy works.
https://developer.wordpress.org/themes/basics/template-hierarchy/