Fixed rates change between applying and settlement and you get the rate they offer on the day you settle.
Most lenders offer a rate lock feature which allows you to secure the published rate for a fee and the lender will hold the rate for up to 90 days.
If you don't rate lock rates can go up...