Blog Layout

I’m trying to change the posts layout page manually via php, which file(s) control the blog page? I am unable to locate them.

I am using the masonry layout right now.

home.php and archive.php