ProxyFactory.sol "update your truffle config or pragma statement" error

--> @openzeppelin/upgrades/contracts/upgradeability/ProxyFactory.sol:1:1:
|
1 | pragma solidity ^0.5.3;
| ^^^^^^^^^^^^^^^^^^^^^^^

Error: Truffle is currently using solc 0.8.11, but one or more of your contracts specify "pragma solidity ^0.5.3".
Please update your truffle config or pragma statement(s).

Any help or pointers would be appreciated...