Do you mean phones without unlocked bootloaders ? errrrmmmmmm you can't
Check the LineageOS device suport list : if your device was ever supported, you cand build for yourself (provided you have enough horsepower), or request an unofficial build in the iodéOS forums