my baby has a flat head

He turned 4 months today and my doctor said if it's not better by 6 months then he will have to have a helmet. 😭😭 what can I do to help this besides tummy time? We've tried and tried and tried and he HATES it and will just bury his head in the floor. Are there special types of pillows for when he goes to sleep or something that will help? Also any other suggestions would be awesome!!!!!!